DisMax search on field only if it exists otherwise fall-back to another

2017-04-05 Thread Georg Sorst
Hi list! The question was already asked by Neil Prosser sometime in 2015 but apparently never got a reply, so here's to better luck this time: At the moment I'm using a DisMax query which looks something like the following (massively cut-down): ?defType=dismax &q=some query &qf=field_one^0.5 fie

DisMax search on field only if it exists otherwise fall-back to another

2015-01-15 Thread Neil Prosser
Hopefully this question makes sense. At the moment I'm using a DisMax query which looks something like the following (massively cut-down): ?defType=dismax &q=some query &qf=field_one^0.5 field_two^1.0 I've got some localisation work coming up where I'd like to use the value of one, sparsely popu