Seems that's an error from the documentation with the 'Factory' missing in
the classname !!?

I found 

<filter class="solr.PatternReplaceFilterFactory" pattern="_" replacement="
"/>

That is working fine !!!

Conclusion i have this files :
*synonymswords.txt :*
php,mysql,html,css=>web_langage

And

*keepwords.txt :*
web langage

With this fieldType : 

<fieldType name="text_tag" class="solr.TextField" sortMissingLast="true"
omitNorms="true">
        <analyzer>
                <tokenizer class="solr.StandardTokenizerFactory"/>
                <filter class="solr.LowerCaseFilterFactory"/>
                <filter class="solr.SynonymFilterFactory"
synonyms="synonymswords.txt"/>
                <filter class="solr.PatternReplaceFilterFactory" pattern="_"
replacement=" "/>
                <filter class="solr.KeepWordFilterFactory"
words="keepwords.txt" ignoreCase="true"/>
        </analyzer>
    </fieldType>


And it's working fine ;)


But I have another question, my fields are configured like that :

<copyField source="mytext" dest="text_tag_facet" />
<field name="text_tag_facet" type="text_tag" indexed="true" stored="false"
multiValued="true"/>

But if I turn "stored" to "true", it always return the full original text in
my documents field value for "text_tag_facet" and not the facets created
(like 'web langage')

How can i get the result of the facet in the stored field of the document ?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-index-a-facetfield-by-searching-words-matching-from-another-Textfield-tp3761201p3763551.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to