Erick My field contains "a b" (without ")
We are trying to assemble the query as a String by appending the various values. I think that is a large part of the problem and our lives would be easier if we let the Solr api do this work. We've experimented with our "query assembler" producing field:a+b We've also tried making it create field:a\ b The first case just does not work and I'm unsure why. The second case ends up url encoding the \ and I'm unsure if that will cause it to be used in the query or not. Mark On Sun, Sep 11, 2011 at 12:10 PM, Erick Erickson <erickerick...@gmail.com>wrote: > Try escaping it for a start. > > But why do you want to? If it's a phrase query, enclose it in double > quotes. > You really have to provide more details, because there are too many > possibilities > to answer. For instance: > > If you're entering field:a b then 'b' will be searched against your > default text field > and you should enter field:(a b) or field:a field:b > > If you've tokenized the field, you shouldn't care. > > If you're using keywordanalyzer, escaping should work. > > Etc. > .... > > Best > Erick > > On Fri, Sep 9, 2011 at 8:11 PM, Mark juszczec <mark.juszc...@gmail.com> > wrote: > > Hi folks > > > > I've got a field that contains 2 words separated by a single blank. > > > > What's the trick to creating a search string that contains the single > blank? > > > > Mark > > >