: Unfortunately this is not that easy. Because I must be able to retrieve
: only one article and if i index all the content in one document then all
: the document will be retrieved instead of the single article.
i didn't say you had to *only* index the article contents in "group"
documents ... y
I think you're back to Karl's suggestion. Implement a HitCollector and
ignore all hits on a group ID after the first one. You even get the most
relevant article in the group that way ...
Best
Erick
Unfortunately this is not that easy. Because I must be able to retrieve only
one article and if i index all the content in one document then all the
document will be retrieved instead of the single article.
Chris Hostetter <[EMAIL PROTECTED]> a écrit :
: Then if I search for a word which is pr
Here more details because it seems that I did not give enough information :)
I want to index my messsage board and each topic contains several posts. So my
idea was to index each post with 3 fields (ID, title, post_content)
then I can search in each post and have a link with the title of th
: Then if I search for a word which is present in article1 and article 2,
: i'd like to retrieve only one result because they are in the same group.
if you only want one result back per group, then odds are you want one
document per group -- nad index the text from all of the articles in that
gr
On Mon, 2006-07-24 at 20:49 +0200, John john wrote:
> article1, article2 and article3 are in the group1
> article4 and article5 are in the group2
>
> Then if I search for a word which is present in article1 and article
> 2, i'd like to retrieve only one result because they are in the same
> g
Hello,
I'm pretty new to lucene so I hope my question is not stupid :)
I'd like to index articles but I want them to be in a group.
such as:
article1, article2 and article3 are in the group1
article4 and article5 are in the group2
Then if I search for a word which is present in artic