: This would be nice, but unfortunately I do not have direct access
: to the solr server in my application. I need to parse queries,
: filter out blacklisted facettes and then parse them on to solr
: using solrj.

that depends ... what do you mean by a blacklisted facet?

facet counts are controlled by seperate query params then the query string 
... are you talking about preventing people from including field 
specific queries in their query string? i'm guessing that you mean 
something like this is okay...

        solr title:bobby body:boy

...but this isn't...

        solr title:bobby body:boy secret_field:xyzyq

...is that the idea?

the easiest approach is to do your own simple pass over the query string, 
and escape any metacharacters in clauses you don't like ... they'll be 
treated as "terms" and either be ignored (if they are optional) or cause 
the query to not match anything (if they are required)...

        solr title:bobby body:boy secret_field\:xyzyq







-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to