Running Lucene tests on a custom Directory subclass

2013-12-17 Thread Scott Schneider
Hello, I'm trying to run Lucene's unit tests on Lucene Transform's TransformedDirectory. I get an AbstractMethodError on createOutput(), but I'm quite sure that method is defined. Here are a few lines from the error: test: ... [junit4] Suite: org.apache.lucene.index.TestStressAdvance [j

Re: Lucene Hierarchial Taxonomy Search

2013-12-17 Thread Michael McCandless
You could use PrefixQuery? E.g. make a BooleanQuery with three SHOULD clauses. One clause is TermQuery("/novel/comedy"), another is TermQuery("/novel") with a lower boost, and the last is PrefixQuery("/novel/comedy/") with a lower boost? Mike McCandless http://blog.mikemccandless.com On Tue, D

Re: Lucene42DocValuesProducer used in 4.5 and 4.6

2013-12-17 Thread Robert Muir
it is correct. the format of normalization factors has not changed since 4.2 On Tue, Dec 17, 2013 at 10:49 AM, Torben Greulich wrote: > Hi, > we had a OOM error in solr and were confused about one part of the > stackTrace where Lucene42DocValuesProducer.ramBytesUsed is called, because > we are us

Lucene42DocValuesProducer used in 4.5 and 4.6

2013-12-17 Thread Torben Greulich
Hi, we had a OOM error in solr and were confused about one part of the stackTrace where Lucene42DocValuesProducer.ramBytesUsed is called, because we are using solr in version 4.6 and Lucene45DocValuesProducer already exists. After some research we discovered that Lucene42NormsFormat is used as norm

Re: IndexWriter flush/commit exception

2013-12-17 Thread Michael McCandless
On Mon, Dec 16, 2013 at 7:33 AM, Ravikumar Govindarajan wrote: > I am trying to model a transaction-log for lucene, which creates a > transaction-log per-commit > > Things work fine during normal operations, but I cannot fathom the effect > during > > a. IOException during Index-Commit > > Will th

Re: deleteDocuments(Term... terms) takes a long time to do nothing.

2013-12-17 Thread Michael McCandless
OK I'm glad it's resolved. Another way to handle the "expire old documents" would be to index into separate indices by time, and use MultiReader to search all of them. E.g. maybe one index per day. This way, to delete a day just means you don't pass that index to MultiReader. Mike McCandless h

Lucene Hierarchial Taxonomy Search

2013-12-17 Thread Nino_87
Hi, I've a set of documents annotated with hierarchial taxonomy tags, E.g. [ { "id": 1, "title": "a funny book", "authors": ["Jean Bon", "Alex Terieur"], "book_category": "/novel/comedy/new" }, { "id": 2, "title": "a dramatic book", "authors": ["Alex Terieur"

RE: Lucene deleteDocuments(Term)not working in android working in desktop..

2013-12-17 Thread Uwe Schindler
If you are creating so-called Uber JARS (JAR files that contain multiple JAR files merged together), you must use a tool like Maven Shade plugin, to merge and add META-INF/services files to the uber jar. An APK is also some type of "uber jar". Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28

Re: Lucene deleteDocuments(Term)not working in android working in desktop..

2013-12-17 Thread VIGNESH S
Hi Uwe, Thanks for the Suggestion.The same code iam using in desktop too not jars. DeleteIndex is working in desktop not in Android. please kindly suggest or help.. On Tue, Dec 17, 2013 at 6:48 PM, Uwe Schindler wrote: > You have to ship the APK with all files in the META-INF folder of Luce

RE: Lucene deleteDocuments(Term)not working in android working in desktop..

2013-12-17 Thread Uwe Schindler
You have to ship the APK with all files in the META-INF folder of Lucene's JAR files (merged together if there are multiple files with same name). Those must be also available in the APK in the sub-folder META-INF. You can use the Maven Shade Plugin to do this (not sure how to use that with apkb

Lucene deleteDocuments(Term)not working in android working in desktop..

2013-12-17 Thread VIGNESH S
Hi , I tried Lucene 3.6 in both desktop and android and deleteDocuments is working fine. I tried Lucene Version 4.3 code in Desktop and android.In Desktop it is deleting the index files without any problem. In android,I changed the following files to avoid jar problem. {Codec.java,DocValuesForma

RE: docFreq of a Boolean query (LUCENE 4.3)

2013-12-17 Thread Allison, Timothy B.
TotalHitCountCollector? Others on the list may have a more efficient method, but that'd be straightforward. -Original Message- From: Peyman Faratin [mailto:peymanfara...@gmail.com] Sent: Monday, December 16, 2013 10:05 PM To: java-user@lucene.apache.org Subject: docFreq of a Boolean que