I have an instance of IndexSearcher and then call rewrite method with the
query.
IndexRear ir = IndexReader.open("directory path",true);
IndexSearcher indexSearcher = new IndexSearcher(ir);
indexSearcher.rewrite(query);
On Wed, Sep 14, 2011 at 10:03 PM, Simon Willnauer <
simon.willna...@googlemai
September 14 2011, Apache Lucene™ 3.4.0 available
The Lucene PMC is pleased to announce the release of Apache Lucene 3.4.0.
Apache Lucene is a high-performance, full-featured text search engine
library written entirely in Java. It is a technology suitable for nearly
any application that requires
On Wed, Sep 14, 2011 at 3:08 PM, Charlie Hubbard wrote:
> I posted some questions to stackoverflow regarding how to upgrade from 2.2.x
> to 3.1.x. Hadn't gotten a response so I thought I'd try here. Would repost
> the full question here, but it looks prettier over there:
>
> http://stackoverflow.
Hi,
I posted some questions to stackoverflow regarding how to upgrade from 2.2.x
to 3.1.x. Hadn't gotten a response so I thought I'd try here. Would repost
the full question here, but it looks prettier over there:
http://stackoverflow.com/questions/7383428/questions-on-upgrading-lucene-from-2-2
: 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
how do you rewrite your query?
simon
On Tue, Sep 13, 2011 at 9:22 AM, S Eslamian wrote:
> Hi
> I am using QueryTermExtractor.getTerms for finding the terms of a given
> query in lucene 3.0.3. In it's document has said that "Utility class used to
> extract the terms used in a query, plus any weig
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 returning the olde
Could never have told that from what you wrote ...
Anyway, I've no idea, beyond 2 general statements:
1. Lucene is amazingly fast.
2. Doing anything on large numbers of docs is liable to take some time.
Make of that what you will. If it was me, I'd test it.
--
Ian.
On Wed, Sep 14, 2011 at 3
Hi,
this was clear actually. I was questionning the performance impact to call
IndexReader.deleteDocument(int docNum) one million time. any information
about that?
thanks,
vincent
Ian Lea
14.09.2011 16:20
Please respond to
java-user@lucene.apache.org
To
java-user@lucene.apache.o
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 through that list of document ids calling
IndexReader.deleteDocument(in
Hi, thanks for your answer. out of the 35 millions docs, I need to delete
1 million...
and unfortunately, the ability to put a sort and a max event is not on the
query, but as args in the index searcher.
so I do not see how to do it with deleteDocuments.
regards,
vincent
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
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
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
14 matches
Mail list logo