Monday 15 July 2013

java - Solr: copy a text field to another and transform into keywords -



java - Solr: copy a text field to another and transform into keywords -

i'm pretty new solr, , i'm trying accomplish build keywords list , store other fields in document. have text field in solr schema defined :

<field name="title" type="text_general" indexed="true" stored="false" />

what need create field store keywords, same after processing title after analyzing (tokenizing, stemming etc.). goal expose keywords associated document (built title) 1 can obtain them document.

while possible process title using lucene analyzer (the code in java) , submit pre-built keywords field each document, wonder there way accomplish using copyfield , transforming text field keywords. please allow me know if question not clear.

stored contains non-analyzed input. sounds you're looking termvectors feature: http://wiki.apache.org/solr/termvectorcomponent

java solr lucene keyword analyzer

No comments:

Post a Comment