Adding unstemmed name to lucene index.
This commit is contained in:
parent
574ab33643
commit
bf0d9bdb08
1 changed files with 3 additions and 1 deletions
|
@ -111,9 +111,11 @@ public class Entity2LuceneDoc implements Obj2DocIface{
|
||||||
Field.Store.YES, Field.Index.ANALYZED);
|
Field.Store.YES, Field.Index.ANALYZED);
|
||||||
name.setBoost( NAME_BOOST );
|
name.setBoost( NAME_BOOST );
|
||||||
doc.add( name );
|
doc.add( name );
|
||||||
|
|
||||||
Field nameUn = new Field(term.NAMEUNSTEMMED, value,
|
Field nameUn = new Field(term.NAMEUNSTEMMED, value,
|
||||||
Field.Store.YES, Field.Index.ANALYZED);
|
Field.Store.YES, Field.Index.ANALYZED);
|
||||||
nameUn.setBoost( NAME_BOOST );
|
nameUn.setBoost( NAME_BOOST );
|
||||||
|
doc.add( nameUn );
|
||||||
|
|
||||||
//boost for entity
|
//boost for entity
|
||||||
if( ent.getSearchBoost() != null && ent.getSearchBoost() != 0 )
|
if( ent.getSearchBoost() != null && ent.getSearchBoost() != 0 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue