Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr >> mail # user >> How to index a facetfield by searching words matching from another Textfield


Copy link to this message
-
Re: How to index a facetfield by searching words matching from another Textfield
setting stored="true" simply places a verbatim copy
of the input in the index. Returning that field in
a document will simply return that verbatim copy,
there's no way to do anything else.

The facet *values* you get back in your response should
be what you put in your index though, why doesn't that
suffice?

BTW, it's best to start a new thread rather than switch
topics mid-stream, see:

http://people.apache.org/~hossman/#threadhijack

Best
Erick
On Tue, Feb 21, 2012 at 8:35 AM, Xavier <[EMAIL PROTECTED]> wrote:
> 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.
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB