Re: Exception in thread main - error

2009-10-26 Thread DHIVYA M
Hi anshum,   But am getting the same error for lucene 2.4 even. My actual intention was to take up the earlier version so that it might be easier with less complexity. --- On Mon, 10/26/09, Anshum wrote: From: Anshum Subject: Re: Exception in thread main - error To: java-user@lucene.apache.or

Re: Exception in thread main - error

2009-10-26 Thread Anshum
Hi Dhivya, The complexity is not related to the version of lucene. Also, considering you are now almost at the same plane with everyone else here, it'd be easier for us to help you with figuring out and resolving the issues. Now talking about your issue, its a java classpath setting issue. Try men

RE: Distinct terms values? (like in Luke)

2009-10-26 Thread vsevel
Does it work for numeric fields too? I am working with 2.9.0 and the following code gives extra values: @Test public void distinct() throws Exception { RAMDirectory directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new WhitespaceAnalyzer(), tr

RE: Distinct terms values? (like in Luke)

2009-10-26 Thread Uwe Schindler
> @Test > public void distinct() throws Exception { > RAMDirectory directory = new RAMDirectory(); > IndexWriter writer = new IndexWriter(directory, new > WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.UNLIMITED); > > for (int l = -2; l <= 2; l++) { >

RE: Distinct terms values? (like in Luke)

2009-10-26 Thread Uwe Schindler
I forgot, an alternative to this is to use the FieldCache parsers, which automatically throw an RuntimeException, if a lower precision value is in term to stop iteration in the FieldCache uninversion: try { while (next != null && next.field().equals("trie")) { ints.add(FieldCache.NUMERIC_

Multiterms query and payloads

2009-10-26 Thread Mauro Dragoni
Hi to everyone, I started to use payloads in my indexes. However, I didn't find a class that permits to perform queries using more than one term. The only way that works is to use the BoostingTermQuery class, but by using this class, I can search only one term a time. Does exist a way to do a mult

Re: Multiterms query and payloads

2009-10-26 Thread Grant Ingersoll
In 2.9, there is now the PayloadNearQuery, which might help you. Otherwise, the PayloadTermQuery is still a Query and can be used in a BooleanQuery. Beyond that, you may need to write what you need, since it doesn't exist yet. On Oct 26, 2009, at 10:25 AM, Mauro Dragoni wrote: Hi to ev

Re: IO exception during merge/optimize

2009-10-26 Thread Peter Keegan
Even running in console mode, the exception is difficult to interpret. Here's an exception that I think occurred during an add document, commit or close: doc counts differ for segment _g: field Reader shows 137 but segmentInfo shows 5777 I ensured that the disk space was low before updating the ind

Re: Exception in thread main - error

2009-10-26 Thread Chris Hostetter
: As said i have�set the classpath in environment variable PATH in System properties as, : D:\lucene-1.9-final\lucene-core-1.9-final.jar; D:\lucene-1.9-final\lucene-demos-1.9-final.jar; "PATH" is not "the classpath in environment" for any JVM that i know of, reading this document may be helpfu

Re: IO exception during merge/optimize

2009-10-26 Thread Michael McCandless
On Mon, Oct 26, 2009 at 10:44 AM, Peter Keegan wrote: > Even running in console mode, the exception is difficult to interpret. > Here's an exception that I think occurred during an add document, commit or > close: > doc counts differ for segment _g: field Reader shows 137 but segmentInfo > shows 5

Re: IO exception during merge/optimize

2009-10-26 Thread Peter Keegan
On Mon, Oct 26, 2009 at 2:50 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Mon, Oct 26, 2009 at 10:44 AM, Peter Keegan > wrote: > > Even running in console mode, the exception is difficult to interpret. > > Here's an exception that I think occurred during an add document, commit

Re: IO exception during merge/optimize

2009-10-26 Thread Michael McCandless
On Mon, Oct 26, 2009 at 2:55 PM, Peter Keegan wrote: > On Mon, Oct 26, 2009 at 2:50 PM, Michael McCandless < > luc...@mikemccandless.com> wrote: > >> On Mon, Oct 26, 2009 at 10:44 AM, Peter Keegan >> wrote: >> > Even running in console mode, the exception is difficult to interpret. >> > Here's an

Merging Indexes

2009-10-26 Thread K. M. McCormick
Hello: Currently, I have a large index being build in sections. The indexing program has multiple threads which it uses to optimize time; each thread makes its own, separate index to avoid threads fighting over resources. At the end of the program, the indexes are merged into a single index. ...I

Re: IO exception during merge/optimize

2009-10-26 Thread Peter Keegan
On Mon, Oct 26, 2009 at 3:00 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Mon, Oct 26, 2009 at 2:55 PM, Peter Keegan > wrote: > > On Mon, Oct 26, 2009 at 2:50 PM, Michael McCandless < > > luc...@mikemccandless.com> wrote: > > > >> On Mon, Oct 26, 2009 at 10:44 AM, Peter Keegan

Re: Merging Indexes

2009-10-26 Thread Chris Lu
Pretty sure you can delete the small indexes after the merge. BTW: How long does your indexing and merging take respectively? -- -- Chris Lu - Instant Scalable Full-Text Search On Any Database/Application site: http://www.dbsight.net demo: http://search.dbsight.com Lucen

Deleting documents using "starts with"

2009-10-26 Thread Paul J. Lucas
I currently have code that looks like: Term[] terms = new Term[]{ new Term( key1, value1 ), new Term( key2, value2 ) }; writer.deleteDocuments( terms ); I want to change things such that it will delete all documents having key2's value start with value2, i.e., if va