[Yanel-dev] [Yarep] Index/search properties bugs
Michael Wechner
michael.wechner at wyona.com
Fri May 7 14:52:03 CEST 2010
Hi
I have noticed two more bugs re indexing/searching properties:
1) If a node has several properties and the property values are being
updated, then only the "last" property will
be indexed, because the
updateDocument()
method used within
src/impl/java/org/wyona/yarep/impl/search/lucene/LuceneIndexer.java
does delete the document within the index and hence only the last
property value remains.
2) If a property value contains spaces, then it is not being indexed
properly, whereas this can be fixed by using
luceneDoc.add(new Field(property.getName(), new
StringReader(property.getValueAsString())));
instead
luceneDoc.add(new Field(property.getName(),
property.getValueAsString(), Field.Store.YES, Field.Index.UN_TOKENIZED));
but I am not sure if this is the right approach and need to investigate
some more.
Cheers
Michi
More information about the Yanel-development
mailing list