0
votes

All:

I am pretty new to SOLR, I upload some documents which have "season" in content field(store but not indexed, copy to text field) and in title field(store and indexed copy to text field)

When I use basic query without dismax like:

http://localhost:8983/solr/collection1/select?q=season&rows=5&wt=json&indent=true

It works very well and return correct results, but when I want to boost those documents which have more "season" in content rather than title, I used dismax like(I guess the way I use it is totally, cos the content is not indexed, but I at least expect certain return result even incorrect ):

http://localhost:8983/solr/collection1/select?q=season&rows=5&wt=json&indent=true&defType=dismax&qf=content%5E100+title%5E1

There is no match result returned, I wonder if anyone could help me with this? Or could anyone show me how to use dismax correctly

Thanks

2

2 Answers

1
votes

In your second query you specify the "content" field as the one and only query field but earlier you write that this field is stored but not indexed. If a field is not indexed you can not search against it.

0
votes

I faced the same problem. Tracked it down to the schema definition where for dismax to work, field type should be text and not string

for e.g text_general,text_en_splitting,text_en

Its because of the tokenizers used for this field types.

-->