RE: Exact match on string field with special characters

2014-10-06 Thread Michael Ryan
10:49 AM To: solr-user@lucene.apache.org Subject: Re: Exact match on string field with special characters I may have provided too much background story for my question. What I am trying to do at the core here, is an exact match on a single field. I do this programmatically by reading the field v

Re: Exact match on string field with special characters

2014-10-06 Thread tedsolr
Shoot I just noticed the error in my original post which would certainly cause confusion. Instead of query.addFacetField(fq); I meant to write query.setParam("fq", fg); Sorry. -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-match-on-string-field-with-special-charac

Re: Exact match on string field with special characters

2014-10-06 Thread tedsolr
I may have provided too much background story for my question. What I am trying to do at the core here, is an exact match on a single field. I do this programmatically by reading the field value from the facet query and setting it equal to the field name for a subsequent search. if this is a sampl

Re: Exact match on string field with special characters

2014-10-01 Thread Ahmet Arslan
Hi, raw query parser or term query parser would be handy. https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-TermQueryParser Ahmet On Thursday, October 2, 2014 12:32 AM, tedsolr wrote: I am trying to do SQL like aggregation (GROUP BY) with solr faceting. So I use st

RE: Exact match on string field with special characters

2014-10-01 Thread Michael Ryan
When you call addFacetField, the parameter you pass it should just be the fieldName. The fieldValue shouldn't come into play at all (unless I'm misunderstanding what you're trying to do). If you ever do need to escape a value for a query, you can use org.apache.solr.client.solrj.util.ClientUtil