custom search
-
Using the standard search via wpsolr works fine.
However, if I attempt to search within the title only with something like
title:price
I receive an error of “Solr HTTP error: OK (400) {“error”:{“metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”org.apache.solr.parser.ParseException”],”msg”:”org.apache.solr.search.SyntaxError: Cannot parse ‘text:title:price’: Encountered \” \”:\” \”: \”\” at line 1, column 10.\nWas expecting one of:\n \n …\n …\n …\n \”+\” …\n \”-\” …\n …\n \”(\” …\n \”*\” …\n \”^\” …\n …\n …\n …\n …\n …\n …\n \”[\” …\n \”{\” …\n …\n \”filter(\” …\n …\n “,”code”:400}}”
With a prior version of wpsolr, I thought this worked. If I go directly to solr admin (eliminating wpsolr), I am able to search for title:price and get the expected results.
Am I incorrectly remembering how this used to work? Similarly, some of the other custom searches such as using the ~ to do a proximity search also don’t seem to work any more.
I’m running wpsolr version 15.2 and cannot update at this time.
- The topic ‘custom search’ is closed to new replies.