Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${var} search field syntax generating invalid solr query #97

Open
ConorSheehan1 opened this issue Mar 14, 2019 · 0 comments
Open

${var} search field syntax generating invalid solr query #97

ConorSheehan1 opened this issue Mar 14, 2019 · 0 comments

Comments

@ConorSheehan1
Copy link

I've noticed that if I have a search field with a filter using ${var} syntax (like demo.blacklight.com),
blacklight advanced search throws an error for queries with multiple fields.

400 Bad Request
Error: 'org.apache.solr.search.SyntaxError: Expected identifier at pos 68 str=\'{!dismax qf=

The generated query looks like this:

q=_query_:"{!dismax }test" OR _query_:"{!dismax qf=${title_qf} pf=${title_pf}}test"

If I use $var syntax (like in the advanced_search readme), it works fine.

I'm not sure what the significance of $var vs ${var} is. Is this an dismax vs edismax thing?
Will there be support for advanced search with ${var} syntax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant