Refining Solr searches, getting exact matches?

If you only want to have the "type" clause to be mandatory, you can keep the OR as the default operator and use the encoded '+' .

Worked wonderfully, thanks Pascal! – thebluefox May 4 '10 at 8:16.

By default, Solr uses the OR operator to combine the query terms. If you only want results with location:N1 AND type:blue instead of location:N1 OR type:blue, you'll need to change the operator. The simplest way to change this is by adding an additional parameter q.

Op=AND to the URL when querying: ../select/? Q=location:N1 type:blue&rows=100&fl=*,score&debugQuery=true&q. Op=AND You can also change this for all queries by editing your schema.

Xml file; look for and change it to You might also want to change the field-type of your type field to something that is not tokenized, string for example. This will ensure that the match on that field is exact.

Cheers buddy, some very useful tips, much appreciated :) – thebluefox May 4 '10 at 8:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions