0

I am using Apache Solr 1.4 with dismax, and I am trying to execute a search for the following two phrases:

"call number" "dewey decimal"

I want to match documents that contain either of those phrases. I get matches if I search for those phrases separately, but not together.

I tried queries like:

title:("call number" OR "dewey decimal")

title:["call number" TO "dewey decimal"]

Any ideas?

1 Answer 1

3

Did you also test the following query ?

(title:"call number" OR title:"dewey decimal")
Sign up to request clarification or add additional context in comments.

1 Comment

How would this work for keyword searches? If the keywords come in from the user like this: q="call number" or "dewey decimal" I've tried adding phrase fields and playing with the phrase slop, but can't seem to get this to work with keywords.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.