Help with Lucene Indexer crash recovery

2007-10-04 Thread vivek sar
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 thre

Re: Promblems with searching a field

2007-10-04 Thread Erick Erickson
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 i

Custom Search algorithm integration

2007-10-04 Thread [EMAIL PROTECTED]
Hi, Were planning to use Lucene or Solr within our application and wanted to know if it can support the following: Scenario: We have (say) 5 fields in a document which need to be indexed. 4 fields are indexed by Lucene. The 5th field is not indexed as it has data that cant be indexed or searched

Promblems with searching a field

2007-10-04 Thread Mikal sk�ren
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 : [stored/uncompressed,indexed,tokenized, But wh

Re: Scorer skipTo() expectations?

2007-10-04 Thread Paul Elschot
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), one

TermPositionVector.indexesOf()

2007-10-04 Thread Patricio Galeas
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

RegexQuery on multiple fields?

2007-10-04 Thread Oliver Hummel
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 Que

Scorer skipTo() expectations?

2007-10-04 Thread Dan Rich
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 orderi