lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djd0383 <ddigm...@formos.com>
Subject Upgrading 1.4 to 2.0 - Indexing Issue.
Date Fri, 29 Sep 2006 17:28:18 GMT

I am in the process of trying to upgrade to v2.0 from v1.4 and am having
trouble building my index.  For each of the various entries in the database,
I am more or less doing the following:

doc1.add(new Field("allText",searchText,Store.NO,Index.TOKENIZED));
indexWriter.add(doc1);

This seems to build an incorrect index.  I know this is true because I can
see entries that are not indexed.  The searching and indexing have been
minorly editted from the v1.4 code and seem to be correct.

My query is like the following if this helps too:

final Query query;
QueryParser qp = new QueryParser(fieldToSearch,analyzer);
query = qp.parse(search);

Thanks for your help.
-- 
View this message in context: http://www.nabble.com/Upgrading-1.4-to-2.0---Indexing-Issue.-tf2358182.html#a6569399
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message