:S If you have two hits, you have it two times in your index, simple as that. So, you have two lucene Documents with the same subject, but with different authors, and your search for subject, well, obviously you get 2 hits.
Check out luke, it will help you understand your index. Furthermore, you probably want to index the document ones, and just add to times the same lucene field with a different user. Ard > > the documents are not duplicated, i mean the hits (assume > that 2 documents have the same subject but with different > authors, so if i'm searching the subject, the returned hits > will have duplicates ) > i was asking if i can remove duplicates from the hits?? > > thanks in advance > > Ard Schrijvers <[EMAIL PROTECTED]> wrote: Hello Heba, > > you need some lucene field that serves as an identifier for > your documents that are indexed. Then, when re-indexing some > documents, you can first use the identifier to delete the old > indexed documents. You have to take care of this yourself. > > Regards Ard > > > > > Hello > > i would like to implement a suggest implementation (like > > google suggest) using lucene. i actually tried using lucene > > and it was successfull but i was stuck in some point which is > > returning a list of results to the user that have no > > duplicates. my question is: is there any way i can remove > > duplicates with that r returned from the search in the hits > > or i should manage it manually ?? > > > > > > thanks in advance > > > > > > Yours > > > > Heba > > > > > > --------------------------------- > > Moody friends. Drama queens. Your life? Nope! - their life, > > your story. > > Play Sims Stories at Yahoo! Games. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > Yours > > Heba > > > --------------------------------- > Shape Yahoo! in your own image. Join our Network Research > Panel today! > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]