lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Prichard <michael_prich...@mac.com>
Subject Query does not work past 26 characters?!
Date Thu, 20 Jul 2006 02:23:42 GMT
Tell me I am totally missing something here....

I created an index w/ StandardAnalyzer with two fields as follows:

Document doc = new Document();
doc.add(new Field("to", "michael@reallylonglonglonglongname.com", Field.Store.YES, Field.Index.TOKENIZED));
doc.add(new Field("content", "blah3 blah3 blah3", Field.Store.YES, Field.Index.TOKENIZED));
writer.addDocument(doc);

When I search for as follows:

PrefixQuery pq = new PrefixQuery(new Term("to", "michael@reallylonglonglong"));

I get a hit. That is good.

When I search a little more like:

PrefixQuery pq = new PrefixQuery(new Term("to", "michael@reallylonglonglongname"));

No hits!!

Same thing with QueryParser, etc.

Any ideas?

Thanks,
Michael

P.S.  I tried UN_TOKENIZED as well...but I don't think that messes with email addresses anyway.

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


Mime
View raw message