Hello! Do you have to use faceting for prefixing ? Maybe it would be better to use ngram based field and return the stored value ?
-- Regards, Rafał Kuć Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch > > Hi. > Is there any solution to facet documents with specified prefix on > some tokenized field, but in result gets the original value of a field? > e.q.: > <field name="category_ac" type="text_autocomplete" indexed="true" > stored="true" multiValued="true" /> > <fieldType name="text_autocomplete" class="solr.TextField"> > <analyzer> > <tokenizer > class="solr.StandardTokenizerFactory" /> > <filter class="solr.LowerCaseFilterFactory" /> > </analyzer> > </fieldType> > Indexed value: "toys for children" > query: > q=&start=0&rows=0&facet.limit=-1&facet.mincount=1&f.category_ac.facet.prefix=chi&facet.field=category_ac&facet=true > I'd like to get exacly "toys for children", not "children" > -- > Grzegorz Sobczyk