Featured post
random - several ordenation needs in the same request -
i have doubt solr possibilities. need request special issues:
i need first: promoted records terms typed user (ordered randomly). second: promoted records term typed user (ordered randomly). third: promoted records found stemming search (ordered randomly). fourth: promoted records found phonetic search (randomly). fifth: free records ordered alphabeticly (having or term typed user).
these results need paginated.
is possible in same request?
after finding out random ordering support in solr via:
<fieldtype name="random" class="solr.randomsortfield" /> <field name="random" type="random" indexed="true" stored="false"/>
those queries possible not in 1 query
although 1 use facet , facet.query feature, returns count ... not docs.
i setup separate advertising index instead of normal way implement 'advertising' elevation component
promoted records terms typed user (ordered randomly)
a simple , query against advertising index
promoted records term typed user (ordered randomly)
a simple or query against advertising index
promoted records found stemming search (ordered randomly).
normal search (with stemming) in advertisment index.
promoted records found phonetic search (randomly).
you'll need transform query , terms via own phonetic transformation that. you'll have special field phonetic_text , you'll need query via
q=phonetic_text:"u r g8" (which means: great ;-))
free records ordered alphabeticly (having or term typed user).
again normal search via "and" or "or" sort parameter
- Get link
- X
- Other Apps
Comments
Post a Comment