Specifying the default search field in the schema has been deprecated for a while, it wasn't flexible enough.
The recommended way is to specify a "df" parameter in your request handler defaults. The space separates the field specification from the second term.\ Assuming that you want to search both terms in the same field, you have several options test_name:(term1 term2) will search for both in the test_name field using the default operator, usually OR. test_name:(+term1 +term2) will require both terms to appear in the field, you get a similar effect from test_name:(term1 AND term2) (note the AND must be capitalized). test_name:"term1 term2" will look for both terms in test_name, but they have to be next to each other. test_name:"term1 term2"~5 will look for them within 5 words of each other, and will also hit if term2 is in front of term1. Best, Erick On Wed, Apr 8, 2015 at 12:42 PM, Test Test <andymish...@yahoo.fr> wrote: > Re, > You have to specify defautSearchField tag in Schema.xml > Regards,Andy > > > Le Mercredi 8 avril 2015 21h33, avinash09 <avinash.i...@gmail.com> a > écrit : > > > > > http://localhost:8983/solr/rna/select?q=test_name:*Uae > blow*&wt=json&rows=100 > > getting > { > responseHeader: { > status: 400, > QTime: 28 > }, > error: { > msg: "no field name specified in query and no default specified via 'df' > param", > code: 400 > } > } > > plz help!! > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/i-am-using-text-general-not-able-to-search-on-space-tp4198470.html > Sent from the Solr - User mailing list archive at Nabble.com. > > >