Say I have a classified ads site, I
want to display 2 random items (premium
ads) in the beginning of the search result and the rest are
regular ads, how
do I do it?
http://wiki.apache.org/solr/QueryElevationComponent is used for paid inclusion.
I think you may use/customize the query elevation component to achieve that.
http://wiki.apache.org/solr/QueryElevationComponent
Tommaso
2012/2/9 mtheone mthe...@gmail.com
Say I have a classified ads site, I want to display 2 random items (premium
ads) in the beginning of the search result and
Or you can do a search for two ads with random ordering, then a second search
for ads in the desired order with excludes for the two ads returned in the
first.
You don't have to do everything inside Solr.
wunder
Search Guy, Chegg
On Feb 9, 2012, at 1:04 AM, Tommaso Teofili wrote:
I think
I'd rather boost premium ads rather than go the way of elevation.
@wunder
i think I'll go with your suggestion, thanks all
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-do-this-in-Solr-random-result-for-the-first-few-results-tp3728729p3731393.html
Sent from the
ok i was looking at RandomSortField and got confused by As long as the
index version remains unchanged, and the same field name is reused, the
ordering of the docs will be consistent. So does that mean it's not really
random if I'm hitting an index which doesn't have an update for a while?
--
: ok i was looking at RandomSortField and got confused by As long as the
: index version remains unchanged, and the same field name is reused, the
: ordering of the docs will be consistent. So does that mean it's not really
: random if I'm hitting an index which doesn't have an update for a