I want to provide a list of facets to my visitors order alphabetically, for
example, for the 'features' facet I have:
data-config.xml:
<entity name="location_feature" query="select featureid from
location_features where locationid='${location.id}'">
<entity name="feature" query="select title from features where id =
'${location_feature.featureid}' ORDER BY title ASC">
<field name="features" column="title" />
</entity>
</entity>
schema.xml:
<field name="features" type="textTight" indexed="true" stored="true"
multiValued="true"/>
<field name="features_raw" type="string" indexed="true" stored="true"
multiValued="true"/>
<copyField source="features" dest="features_raw"/>
But this doesnt give me the facets in an alphabetical order.
Besides the features facet, I also have some other facets that ALSO need to
be shown in alphabetical order. How to approach this?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Showing-facet-values-in-alphabetical-order-tp2295301p2295301.html
Sent from the Solr - User mailing list archive at Nabble.com.