Documentation on advanced search operators?
Is there any documentation on your advanced search operators? By playing around with the search box, it appears that OR and NOT operators are supported, but searching for an exact phrase (usually signified by putting the phrase in quotes) doesn't seem to work. I'm hoping to run some complex queries against your API, so any guidance would be helpful. Sorry if I missed the doco - please point me at it if I did. Thanks.
1 person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Ah, a search question. That's not one I can answer, but let me see if I can find someone here with the expertise to comment.
I’m searching
-
Inappropriate?Hey Scott, there is no documentation on our advanced search operators because we haven't built out a fully-fledged search framework (for the site, I'll discuss the API later). What you've stumbled on is some default operators that Solr responds to in queries, and that we do not escape. The API uses the same search infrastructure as the website.
Fairly soon, we will be upgrading our search back end. It's possible, then, that we'll have a more flexible search system which will allow you more options and operators.
I’m sorry I don't have a better answer
-
Inappropriate?Thanks for the quick responses! Just to confirm, for the time being Solr is passing the OR and NOT operators back to Lucene, but there is no way to search for an exact phrase (with quotes).
If you don't mind sharing, what search infrastructure are you thinking of going to? I used Sphinx on a RoR project a bit back and was pretty happy with it.
I’m happy
-
Inappropriate?Yep, right now, I believe we are escaping quotes at query time. The other operators pass through to Solr, and hence the Lucene library that underlies Solr.
Currently our plans are to upgrade to the latest version of Solr, and since I'm really unhappy with the state of acts_as_solr, the Rails plugin, I'm considering rewriting it, or looking into other alternatives. We have some specific goals for our search that I'll be using to evaluate the various options. Unfortunately, the search work is mostly a side project right now, as I've got other, higher-priority items to work through during "regular business hours."
I'd love to hear more, or maybe talk with you over email about the best options you've found for search in Rails apps. From the little I've read about Sphinx, it sounds fairly promising. My email address is cameron at this domain.
I’m thankful
Loading Profile...



