Hi,
I just realized that since I upgraded from Lucene 2.x to 3.0.0 (and removed
all deprecated things), searches like that don't work anymore:
test AND blue
test NOT blue
(test AND blue) OR red
etc.
Before 3.0.0, I was inserting my fields like this:
doc.add(new Field("content", sValues[j], Fiel
Any more info to share?
In 2.9, Tokenized literally == Analyzed.
/** @deprecated this has been renamed to {...@link #ANALYZED} */
public static final Index TOKENIZED = ANALYZED;
Michel Nadeau wrote:
> Hi,
>
> I just realized that since I upgraded from Lucene 2.x to 3.0.0 (and removed
> a
I search like this -
IndexReader reader = IndexReader.open(idx, true);
IndexSearcher searcher = new IndexSearcher(reader);
QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "content",
cluStdAn); // StandardAnalyzer
q = parser.parse(QUERY);
TopDocs td = searcher.search(q, cluCF,
Forget it - I found the problem. There was an escaping problem on the
search-client side.
Sorry about that.
- Mike
aka...@gmail.com
On Tue, Dec 15, 2009 at 3:48 PM, Michel Nadeau wrote:
> I search like this -
>
> IndexReader reader = IndexReader.open(idx, true);
> IndexSearcher searcher =
Thanks for bringing closure, this was scaring me ...
On Tue, Dec 15, 2009 at 4:31 PM, Michel Nadeau wrote:
> Forget it - I found the problem. There was an escaping problem on the
> search-client side.
>
> Sorry about that.
>
> - Mike
> aka...@gmail.com
>
>
> On Tue, Dec 15, 2009 at 3:48 PM, Mich
Check your field typo first
- 原始邮件 -
发件人: Michel Nadeau
发送时间: 2009年12月16日 星期三 4:48
收件人: java-user@lucene.apache.org
主题: Re: Tokenized fields in Lucene 3.0.0
I search like this -
IndexReader reader = IndexReader.open(idx, true);
IndexSearcher searcher = new IndexSearcher(reader