Well, starting in 4x you can sort by function (see http://wiki.apache.org/solr/FunctionQuery). So if your encoding is such that you can write a function that maps the order you can probably realize this. You could probably combine that with external file fields (or maybe even an sidecar index) that made this easily changeable.
Best Erick On Thu, Jan 31, 2013 at 4:27 AM, vijeshnair <vijeshkn...@gmail.com> wrote: > It could be a foolish question or concern, but I have no option :-) . We do > have an e-com site where we consuming the feed from the CSE partners and > indexing it in to SOLR for our search. Instead of the traditional > auto-suggest, the predictive search in the header search box recommends the > categories(category facet) for which it found the matching for the given > keyword. With this approach for a search like "apple iphone" will yield > more > results for "cell phone accessories" than "Cell phone", hence in the drop > down cell phone accessories will come first then the cell phone. Which is > quiet natural and works as expected as we have the default sorting for > facet > constraints as "count". Today my boss "tech director" was asking me to > tweak > this order, i.e. business team will prioritize the whole 1300 categories > which is available today in my taxonomy in some order, then my category > facet constraint's order should be based on the order that they are > providing to us. He was telling me in Oracle Endeca it is possible, where > he > was showing me to change the order of category etc, mean to say any sort of > customization to change the order etc, so check if SOLR supports. Though my > answer was no to that, he was proposing to handle this in the code other > wise, i.e. change the order in the client side. So the intention of writing > this is to check whether there are any such options available in SOLR or > not. I understand the two types of sorting which is available i.e count and > index, are there some thing beyond? where I can alter this using an > external > list or some thing like that. Any help will be appreciated. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Question-on-Facet-field-constraints-sort-order-tp4037647.html > Sent from the Solr - User mailing list archive at Nabble.com. >