: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
...@lombardodier.com]
Sent: Wednesday, September 14, 2011 9:24 AM
To: java-user@lucene.apache.org
Subject: deleting with sorting and max document
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 criteria.
I can easily do this on the searcher by
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 criteria.
I can easily do this on the searcher by using search(Query query, int n,
Sort sort)
but there is nothing equivalent for the deleteDocuments.
what are my options?
thank
10 matches
Mail list logo