> > But as Erick says, it's not clear that's really what you want (to > search on a single term with a space in it). If it's a normal text > field, each word will be indexed separately, so you really want a > phrase query or a boolean query: > > field:"a b" > or > field:(a b) > > I am looking for a text string with a single, embedded space. For the purposes of this example, it is "a b" and its stored in the index in a field called field.
Am I incorrect in assuming the query field:"a b" will match the the string a followed by a single embedded space followed by a b? I'm also wondering if this is already handled by the Solr/SolrJ API and if we are making our lives more difficult by assembling the query strings ourselves. Mark > -Yonik > http://www.lucene-eurocon.com - The Lucene/Solr User Conference >