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
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
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
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
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
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
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
> 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
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