Re: segment_N file is missed

2010-06-18 Thread Lance Norskog
This code is old (2006!) and I've updated it for Lucene 2.9.2, ad the trunk.This version only works for one CFS file (that I've tested). The code does not check versions carefully. Here are both versions: Lucene 2.9.2: package org.apache.lucene.index; import java

Difference between PhraseQuery and Span(Near)Query

2010-06-18 Thread syedfa
Dear fellow Java developers: I am reading up on PhraseQuery to search for an exact match for terms that appear exactly in a particular order for a field (i.e. slop value of 0). However, I came across SpanNearQuery which appears to work in a similar fashion, but am confused, due to it's variation

Re: Exception when running search

2010-06-18 Thread Siraj Haider
I knew I was doing something stupid and a simple statement that you made urged me to check and the problem was, the n was passed as 0. Thanks a lot Uwe. On a side note, It would be better to see more readable exception instead of a ArrayIndexOutofBound. Thanks alot for your help. -siraj O

RE: Exception when running search

2010-06-18 Thread Uwe Schindler
Whats the code you use for search? What is n, what type of fields? - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Siraj Haider [mailto:si...@jobdiva.com] > Sent: Friday, June 18, 2010 4:06 PM > To: java

Fwd: Exception when running search

2010-06-18 Thread Siraj Haider
Just wanted to mention that I am using Lucene 2.9.2 if it helps. thanks -siraj Original Message Subject:Exception when running search Date: Thu, 17 Jun 2010 13:06:04 -0400 From: Siraj Haider Reply-To: java-user@lucene.apache.org To: java-user@lucene.apac

[ANNOUNCE] Release of Lucene Java 3.0.2 and 2.9.3

2010-06-18 Thread Uwe Schindler
Hello Lucene users, On behalf of the Lucene development community I would like to announce the release of Lucene Java versions 3.0.2 and 2.9.3: Both releases fix bugs in the previous versions: - 2.9.3 is a bugfix release for the Lucene Java 2.x series, based on Java 1.4. - 3.0.2 has the same

Re: Strange behaviour of StandardTokenizer

2010-06-18 Thread Simon Willnauer
Hi Anna, what are you using you tokenizer for? There are a lot of different options in lucene an StandardTokenizer is not necessarily the best one. The behaviour you are see is that the tokenizer detects you token as a number. When you look at the grammar that is kind of obvious. // floating poi

Re: Strange behaviour of StandardTokenizer

2010-06-18 Thread Ahmet Arslan
> okay, so it is recognized as a number? Yes. You can see token type definitions in *.jflex file. > Maybe I'll have to use another tokenizer. MappingCharFilter with StandardTokenizer option exists. NormalizeCharMap map = new NormalizeCharMap(); map.add("-", " "); TokenStream stream = new Sta

Re: Strange behaviour of StandardTokenizer

2010-06-18 Thread Anna Hunecke
Hi Ahmet, thanks for the explanation. :) okay, so it is recognized as a number? I didn't expect that really. I expect that all words are either split at the minus or not. Maybe I'll have to use another tokenizer. Best, Anna --- Ahmet Arslan schrieb am Do, 17.6.2010: > Von: Ahmet Arslan > Betre