You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sandyg <ga...@gmail.com> on 2008/08/04 09:48:30 UTC

how to get all unique documents based on keyword feild

Hi ALL,

First thnx for spending time to read the message.
Am using MatchAllDocsQuery to get all the documents .
But i need documents that are  unique based on keyword .
in my document keyword feild  had values like 1,2,2,3,4,5,5,5,5 so on.....
so the result i need is only 1,2,3,4,5 so on ... unique
but MatchAllDocsQuery will get all documents 1,2,3,4,5

Do i have any class ,where i will get  unique documents based on keyword.
-- 
View this message in context: http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18807014.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: how to get all unique documents based on keyword feild

Posted by Ian Lea <ia...@gmail.com>.
I've never used it, but from my reading of the thread referenced
below, that is exactly what DuplicateFilter does: remove duplicates at
query i.e. retrieval time, based on whatever you tell it.


--
Ian.


On Tue, Aug 5, 2008 at 11:54 AM, sandyg <ga...@gmail.com> wrote:
>
> Hi Ian,
> Tnx for the reply .
> But i have already duplicate records and the issue is not for controlling
> duplicate documents, but when i retreive documents
>  i should get unique documents based on keyword feild.
>
>
> Ian Lea wrote:
>>
>> Sounds like a thread from a few weeks ago.
>> http://www.gossamer-threads.com/lists/lucene/java-user/63141
>>
>> DuplicateFilter may be what you're looking for.
>>
>>
>> --
>> Ian.
>>
>>
>>
>> On Mon, Aug 4, 2008 at 8:48 AM, sandyg <ga...@gmail.com> wrote:
>>>
>>> Hi ALL,
>>>
>>> First thnx for spending time to read the message.
>>> Am using MatchAllDocsQuery to get all the documents .
>>> But i need documents that are  unique based on keyword .
>>> in my document keyword feild  had values like 1,2,2,3,4,5,5,5,5 so
>>> on.....
>>> so the result i need is only 1,2,3,4,5 so on ... unique
>>> but MatchAllDocsQuery will get all documents 1,2,3,4,5
>>>
>>> Do i have any class ,where i will get  unique documents based on keyword.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18807014.html
>>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18828735.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


Re: how to get all unique documents based on keyword feild

Posted by sandyg <ga...@gmail.com>.
Hi Ian,
Tnx for the reply .
But i have already duplicate records and the issue is not for controlling 
duplicate documents, but when i retreive documents
 i should get unique documents based on keyword feild.


Ian Lea wrote:
> 
> Sounds like a thread from a few weeks ago.
> http://www.gossamer-threads.com/lists/lucene/java-user/63141
> 
> DuplicateFilter may be what you're looking for.
> 
> 
> --
> Ian.
> 
> 
> 
> On Mon, Aug 4, 2008 at 8:48 AM, sandyg <ga...@gmail.com> wrote:
>>
>> Hi ALL,
>>
>> First thnx for spending time to read the message.
>> Am using MatchAllDocsQuery to get all the documents .
>> But i need documents that are  unique based on keyword .
>> in my document keyword feild  had values like 1,2,2,3,4,5,5,5,5 so
>> on.....
>> so the result i need is only 1,2,3,4,5 so on ... unique
>> but MatchAllDocsQuery will get all documents 1,2,3,4,5
>>
>> Do i have any class ,where i will get  unique documents based on keyword.
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18807014.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18828735.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: how to get all unique documents based on keyword feild

Posted by Ian Lea <ia...@gmail.com>.
Sounds like a thread from a few weeks ago.
http://www.gossamer-threads.com/lists/lucene/java-user/63141

DuplicateFilter may be what you're looking for.


--
Ian.



On Mon, Aug 4, 2008 at 8:48 AM, sandyg <ga...@gmail.com> wrote:
>
> Hi ALL,
>
> First thnx for spending time to read the message.
> Am using MatchAllDocsQuery to get all the documents .
> But i need documents that are  unique based on keyword .
> in my document keyword feild  had values like 1,2,2,3,4,5,5,5,5 so on.....
> so the result i need is only 1,2,3,4,5 so on ... unique
> but MatchAllDocsQuery will get all documents 1,2,3,4,5
>
> Do i have any class ,where i will get  unique documents based on keyword.
> --
> View this message in context: http://www.nabble.com/how-to-get--all-unique--documents-based-on-keyword-feild-tp18807014p18807014.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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