Solr query not returning results?

when i enter search url


i get a response with 10 do*****ents.

but when i want to test specific query, then nothing comes up. for example:


why is that happening? i clearly see in results, that there is do*****ent with word "white" in it. so why solr dont return that do*****ent as result.?

asked May 16, 2015 in SOLR by rajesh
0 votes

1 Answer

0 votes
q=*:* searches for all content on all the do*****ents, hence you get back the results.

q=white will search for white on the default search field, which is usually text if you have not modified the schema.xml.

you can change the default field to be the field you want to search on.
or use specific field to search on the specific field e.g. *****le q=*****le:white

if you want to search on multiple field, you can combine the fields into one field by using copyfields or use dismax request handler.
answered May 16, 2015 by rajesh