Search documents which contain a document

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

Hi,

I think the most naive solution could be giving the publisher field a high
boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

Yes, but can i avoid to push book information in publisher document?

On Mon, Apr 4, 2011 at 12:56, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

I think the most naive solution could be giving the publisher field a high
boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

Hi,

How about using terms facet?
May be if you can elaborate more on how you want to present the results to
the users.

Regards,
Lukas

On Mon, Apr 4, 2011 at 1:19 PM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Yes, but can i avoid to push book information in publisher document?

On Mon, Apr 4, 2011 at 12:56, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

I think the most naive solution could be giving the publisher field a high
boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

Hi,

I display only the publisher name. The problem is my users type in the same
field book name or publisher name in order to found a publisher. I can make
double search on publisher and books and merge the two search but search on
books sometimes return 100 times the same publisher as the first result.

Thanks for your help

On Mon, Apr 4, 2011 at 14:05, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

How about using terms facet?
May be if you can elaborate more on how you want to present the results to
the users.

Regards,
Lukas

On Mon, Apr 4, 2011 at 1:19 PM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Yes, but can i avoid to push book information in publisher document?

On Mon, Apr 4, 2011 at 12:56, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

I think the most naive solution could be giving the publisher field a
high boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

So the terms facet could be an ideal solution for you?
Let's have a query that has two terms facets, one for the publisher and the
second for book name and then combine these results on the client side
displaying publishers first. Would this help?

Regards,
Lukas

On Mon, Apr 4, 2011 at 2:18 PM, Julien Duponchelle
julien@duponchelle.infowrote:

Hi,

I display only the publisher name. The problem is my users type in the same
field book name or publisher name in order to found a publisher. I can make
double search on publisher and books and merge the two search but search on
books sometimes return 100 times the same publisher as the first result.

Thanks for your help

On Mon, Apr 4, 2011 at 14:05, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

How about using terms facet?
May be if you can elaborate more on how you want to present the results to
the users.

Regards,
Lukas

On Mon, Apr 4, 2011 at 1:19 PM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Yes, but can i avoid to push book information in publisher document?

On Mon, Apr 4, 2011 at 12:56, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

I think the most naive solution could be giving the publisher field a
high boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance

That's sound good i will give it a try.

Thanks

On Mon, Apr 4, 2011 at 14:32, Lukáš Vlček lukas.vlcek@gmail.com wrote:

So the terms facet could be an ideal solution for you?
Let's have a query that has two terms facets, one for the publisher and the
second for book name and then combine these results on the client side
displaying publishers first. Would this help?

Regards,
Lukas

On Mon, Apr 4, 2011 at 2:18 PM, Julien Duponchelle <
julien@duponchelle.info> wrote:

Hi,

I display only the publisher name. The problem is my users type in the
same field book name or publisher name in order to found a publisher. I can
make double search on publisher and books and merge the two search but
search on books sometimes return 100 times the same publisher as the first
result.

Thanks for your help

On Mon, Apr 4, 2011 at 14:05, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

How about using terms facet?
May be if you can elaborate more on how you want to present the results
to the users.

Regards,
Lukas

On Mon, Apr 4, 2011 at 1:19 PM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Yes, but can i avoid to push book information in publisher document?

On Mon, Apr 4, 2011 at 12:56, Lukáš Vlček lukas.vlcek@gmail.comwrote:

Hi,

I think the most naive solution could be giving the publisher field a
high boost during indexing?

Regards,
Lukas

On Mon, Apr 4, 2011 at 11:21 AM, Julien Duponchelle <
julien.duponchelle@gmail.com> wrote:

Hi,

I have the following problem.

I need to index books and publishers. I create two type of documents:

  • publisher
  • book

A publisher can publish a lot of book and a book can be publish by
many publisher.

I need to be able to search a publisher by publisher name (ex:
Penguin) or by book title (ex: Harry Potter) in the same text input.

If i search Penguin i want the publisher Penguin before publisher who
publish books about penguins.

My first try was to push information about book in publisher
documents, but that require two modify the publisher document each
time we add a book but this slow the indexation because we can't index
two books from the same publisher at the same time.

Have you a better solution for that problem?

Thanks by advance