lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Antonio <jcanto...@arcetis.com>
Subject Query issue
Date Tue, 18 Dec 2007 10:48:30 GMT
|Hello, I have the following query problem.

With the below code,|| the query
"\\[prop\\]voila\\:type:RE" works well
but
"\\[prop\\]voila\\:type:IS" does not return any value (Hits size is 0)
The document was though added to the index (I can retrieve the IS 
document with some other query and the field was well popultated with 
"IS" value).
Any clue?


||
Document doc = new Document();
doc.add(new Field("[prop]voila:type", "IS", Field.Store.YES, 
Field.Index.TOKENIZED));
...
writer.addDocument(doc);

doc = new Document();
doc.add(new Field("[prop]voila:type", "RE", Field.Store.YES, 
Field.Index.TOKENIZED));
...
writer.addDocument(doc);


|

Mime
View raw message