Re: deleting with sorting and max document

2011-09-15 Thread v . sevel
: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

Re: deleting with sorting and max document

2011-09-14 Thread Chris Hostetter
: 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

Re: deleting with sorting and max document

2011-09-14 Thread Simon Willnauer
uestionning the performance impact to call >> IndexReader.deleteDocument(int docNum) one million time. any information >> about that? >> >> thanks, >> vincent >> >> >> >> >> >> >> >> Ian Lea >> >> >> 1

Re: deleting with sorting and max document

2011-09-14 Thread Ian Lea
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

Re: deleting with sorting and max document

2011-09-14 Thread v . sevel
@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

Re: deleting with sorting and max document

2011-09-14 Thread Ian Lea
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 > > > >

Re: deleting with sorting and max document

2011-09-14 Thread v . sevel
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

Re: deleting with sorting and max document

2011-09-14 Thread Ian Lea
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

RE: deleting with sorting and max document

2011-09-14 Thread Sendros, Jason
...@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

deleting with sorting and max document

2011-09-14 Thread v . sevel
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