Re: RE : Re: index articles with groups

2006-07-27 Thread Chris Hostetter
: 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

Re: RE : Re: index articles with groups

2006-07-26 Thread Erick Erickson
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

RE : Re: index articles with groups

2006-07-26 Thread John john
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

RE : Re: index articles with groups

2006-07-24 Thread John john
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

Re: index articles with groups

2006-07-24 Thread Chris Hostetter
: 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

Re: index articles with groups

2006-07-24 Thread karl wettin
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

index articles with groups

2006-07-24 Thread John john
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