[chef] Solr/Lucene question


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Solr/Lucene question
  • Date: Wed, 10 Jul 2013 14:04:30 -0700

I've been looking at COOK-3262, and something I've been wondering... What is the difference between:

    hostname:[* TO *] NOT chef_environment:_default

And:

    hostname:* NOT chef_environment:_default

?

I'm not really hip to Solr syntax outside of the most obvious stuff.

Also, while I'm discussing this, during the last code review of this, opinions were somewhat split between having an attribute be an additional filter after the hostname part of the query and having the attribute be the entire query. I've got a branch that does the latter and it seems to work fine without running into any quoting/escaping issues. My general feeling is that that's a cleaner, more extensible way of approaching things and most people won't run into quoting issues... And if they do, they're likely familiar enough with Solr/Lucene that quoting the query in JSON isn't going to be a hardship for them. More specifically, I tend to think that most people will just end up doing role/environment based queries which should be very straightforward. Thoughts before I resubmit the PR?


--
--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS




Archive powered by MHonArc 2.6.16.

§