:04
Please respond to
java-user@lucene.apache.org
To
java-user@lucene.apache.org, simon.willna...@gmail.com
cc
Subject
Re: deleting with sorting and max document
: can you provide your query which yields all the documents that you
: want to delete? I don't understand how the sort
: can you provide your query which yields all the documents that you
: want to delete? I don't understand how the sort order changes anything
: here. if you want to only delete the top N docs of that query you
: should maybe modify your query to only return those. I could imagine
: you are returni
uestionning the performance impact to call
>> IndexReader.deleteDocument(int docNum) one million time. any information
>> about that?
>>
>> thanks,
>> vincent
>>
>>
>>
>>
>>
>>
>>
>> Ian Lea
>>
>>
>> 1
ea
>
>
> 14.09.2011 16:20
> Please respond to
> java-user@lucene.apache.org
>
>
>
> To
> java-user@lucene.apache.org
> cc
>
> Subject
> Re: deleting with sorting and max document
>
>
>
>
>
>
> You don't do it with deleteDocuments() but w
@lucene.apache.org
cc
Subject
Re: deleting with sorting and max document
You don't do it with deleteDocuments() but with
IndexReader.deleteDocument(int docNum), as I said.
To spell it out a bit more:
Execute a search to get a list of document ids,
searching/sorting/whatever as you wish.
Then loop th
query, but as args in the index searcher.
>
> so I do not see how to do it with deleteDocuments.
>
> regards,
>
> vincent
>
>
>
>
>
>
>
> Ian Lea
>
>
> 14.09.2011 15:37
> Please respond to
> java-user@lucene.apache.org
>
>
>
>
14.09.2011 15:37
Please respond to
java-user@lucene.apache.org
To
java-user@lucene.apache.org
cc
Subject
Re: deleting with sorting and max document
You can get a list of document ids via your search/sort call and call
IndexReader.deleteDocument(int docNum) for each one.
--
Ian.
On Wed
You can get a list of document ids via your search/sort call and call
IndexReader.deleteDocument(int docNum) for each one.
--
Ian.
On Wed, Sep 14, 2011 at 2:23 PM, wrote:
> Hi,
>
> I have an index with 35 millions docs in it. every day I need to delete
> some of the oldest docs that meet some
Vincent,
I think you may be looking for the following method:
http://lucene.apache.org/java/2_9_2/api/all/org/apache/lucene/index/Inde
xWriter.html#deleteDocuments%28org.apache.lucene.search.Query%29
Jason
-Original Message-
From: v.se...@lombardodier.com [mailto:v.se...@lombardodier.com