Re: query formulation

2010-12-14 Thread Erick Erickson
H, have you seen this page? http://lucene.apache.org/java/3_0_3/queryparsersyntax.html If that doesn't help, perhaps you can explain what it is that you're trying to do that the syntax is inadequate for. Do note that Lucene query synt

query formulation

2010-12-14 Thread Hassan Saneifar
Hello, I'm wondering if there is a way to configure the query in lucene to use the logical operation ? In fact, I would like to force retrieval of documents which contain obligatory a given keyword or do not contain an other one. I can do that by a preprocessing (filter the documents which cont

Re: Forcing specific index file names

2010-12-14 Thread Earl Hood
On Tue, Dec 14, 2010 at 9:45 AM, Erick Erickson wrote: > Lucene never changes an existing segments file once it is committed. > It only merges segments then deletes the old ones. So if the file names > are different, then it seems that renaming them wouldn't be what you > really want. > > So eithe

Re: Forcing specific index file names

2010-12-14 Thread Erick Erickson
I'm missing something here. You mention "two versions of a data set in a directory tree structure". The Lucene indexes will have different names if they have been merged. Usually this is a result of changing the data, issuing an optimize, etc. That is, the data *is* different so it seems perfectly

Re: Forcing specific index file names

2010-12-14 Thread Earl Hood
On Tue, Dec 14, 2010 at 12:53 AM, Chris Hostetter wrote: > > : It is possible to always have Lucene end up with the > : same set of index filenames for each index generation > : process? > > this smells like an XY problem why do you car what the file names > are? that's an implementtaion deta

Re: java.lang.NoClassDefFoundError: org/apache/lucene/util/CharacterUtils

2010-12-14 Thread Lahiru Samarakoon
Hi Paul, it is working and very helpful. Thanks, Lahiru On Tue, Dec 14, 2010 at 1:13 PM, Paul Libbrecht wrote: > Allow me to recommend a little trick to track the origin of a class which > works often: > > > > org.apache.lucene.analysis.WhitespaceAnalyzer.class.getResource("WhitespaceAnalyze