Re: Lock Errors within JBoss Environment

2012-12-19 Thread Bowden Wise
Hi Andrew I am using Spring to define my Quartz job's and triggers. I use org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean to specify the targetobject and targetmethod of another java object that is executed when the tirgger occurs. Since we are using JBoss, the scheduler

Re: Lock Errors within JBoss Environment

2012-12-19 Thread Bowden Wise
Ian, I did see the warnings against using the NativeFSLockFactory on NFS. I know the the volume is mounted, but I am not sure it is NFS. If I run my indexing process outside of JBoss I do not see the lock errors, which made me think it was not using NFS. But I am not sure. If I don't use

Re: NGramPhraseQuery with missing terms

2012-12-19 Thread Jack Krupansky
a BooleanQuery, but it requires me to consider every possible pair of terms (since any one of the terms could be missing) What about setting minMatch and all the terms as SHOULD - and then minMatch could be tuned for how many missing terms to tolerate? See:

Re: Looking for example code: Tokenizer + Analyzer for Russian stemming

2012-12-19 Thread Steve Rowe
Hi Dima, The example code you mentioned in your other recent email is pretty close. The only thing you'd probably want to add is access to the CharTermAttribute: CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); and then in the loop over ts.incrementToken(), you can get to

Match intersection by Payload

2012-12-19 Thread Carsten Schnober
Hi, I have a search scenario in which I search for multiple terms and retain only those matches that share a common payload. I'm using this to search for multiple terms that occur all in one sentence; I've stored a sentence ID in the payload for each token. So far, I've done so by specifying a

Re: Boolean and SpanQuery: different results

2012-12-19 Thread Carsten Schnober
Am 13.12.2012 18:00, schrieb Jack Krupansky: Can you provide some examples of terms that don't work and the index token stream they fail on? Make sure that the Analyzer you are using doesn't do any magic on the indexed terms - your query term is unanalyzed. Maybe multiple, but distinct,

Lucene Indexing on NFS

2012-12-19 Thread Bowden Wise
Hello, I have been getting the following lock error when attempting to open an index writer to add new documents to an index. org.apache.lucene.store.LockObtainFailedException Lock obtain timed out: NativeFSLock@/opt/shared/data/CTXTMNG/PAC_INDEX/lucene/aero/prod/index/write.lock I believe this

Re: Lucene Indexing on NFS

2012-12-19 Thread Ian Lea
Use SimpleFSLockFactory. See the javadocs about locks being left behind on abnormal JVM termination. There was a thread on this list a while ago about some pros and cons of using lucene on NFS. 2-Oct-2012 in fact. http://mail-archives.apache.org/mod_mbox/lucene-java-user/201210.mbox/thread --