lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Boo" <a...@e-sandakan.net>
Subject return single document from duplicated documents in index
Date Fri, 09 Jun 2006 06:27:54 GMT
g'day,

i've two questions.

let's say the following is my index with 2 field : title and contents

title                   contents
beer                  beer is good
beer                  beer is good
cat                    sleepy
dog                   what a cute one!
beer                  beer is good

if i do a search on beer, i'll get 3 result returns and three of them
are the same, is there any elegant way to workaround so the hitlist
contains only one document instead of 3? (and i want the index
contains duplicate records for some reason)

____


yet, another senario,

title                   contents                      location
        date
beer                  beer is god                   /usr/data/beer
   111111111
beer                  beer is good                 /usr/data/beer
  222222255
cat                    sleepy                         /usr/data/cat
      222222224
dog                   what a cute one!           /usr/data/dog         555555555
beer                  beer is good                 /usr/data/beer2
   999999999

i want to do a search on beer that will returns only the 2 result on
beer on different location and it must be the latest. is there any way
to do that?

regards,

alan

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message