Hi,
I have a custom Query class that provides a long list of lucene docIds (not for
filtering purposes), which is one clause in a standard BooleanQuery (which also
contains TermQuery instances).
I have a custom Scorer that goes along with the custom Query class.
What (if any) document
Hi,
I've recently tried the RegexQuery with Lucene which works fine with the
following code snippet:
Hits hits;
String q = someregex;
Term t = new Term(content, q);
Query query = new RegexQuery(t);
hits = searcher.search(query);
However, I wonder whether it is possible to use a
Hello,
I'm using the following method to obtain the position of some terms in a
document:
int[] indexOfTerms = TermPositionVector.indexesOf(String[] terms, int start,
int len);
Should I parse the strings contained in terms before I apply indexOf()?
Thank you in advance
Patricio
--
Ist Ihr
Dan,
In Scorers, when skipTo() or next() returns true for the second or later
time, the result of doc() will be increased.
When Scorer.skipTo() does not have document order, documents will
be lost, which means that not all matching documents will be found
by the search.
For disjunctions (OR),
Hi,
I am new to lucene and am currently having some problems searching an index.
so we make the index like this :
doc.add(new Field(itno, item.getMMITNO(), Field.Store.YES,
Field.Index.TOKENIZED ));
this runs ok the index looks like this :
It's hard to say, but two things will help you track this down.
1 get a copy of Luke to examine your index (which you may have already).
2 Query.toString is your friend. It'll show you exactly what the parsed
query looks like. It may be obvious when you see that output
what the problem
Hi,
We are using Lucene 2.3. The problem we are facing is quite a few
times if our application is stopped (killed or crash) while Indexer is
doing its job, the next time when we bring up the application the
Indexer fails to run with the following exception,
2007-10-04 12:29:53,089 ERROR [PS