Adding unstemmed name to lucene index.

This commit is contained in:
bdc34 2010-06-25 21:18:49 +00:00
parent 574ab33643
commit bf0d9bdb08

View file

@ -111,9 +111,11 @@ public class Entity2LuceneDoc implements Obj2DocIface{
Field.Store.YES, Field.Index.ANALYZED);
name.setBoost( NAME_BOOST );
doc.add( name );
Field nameUn = new Field(term.NAMEUNSTEMMED, value,
Field.Store.YES, Field.Index.ANALYZED);
Field.Store.YES, Field.Index.ANALYZED);
nameUn.setBoost( NAME_BOOST );
doc.add( nameUn );
//boost for entity
if( ent.getSearchBoost() != null && ent.getSearchBoost() != 0 )