Re: searching for terms containing embedded spaces

2011-09-11 Thread Erick Erickson
OK, there are several issues here: q= *:* AND CUSTOMER_TYPE_NM:Network Advertiser AND ACTIVE_IND:1&defType=edismax&rows=500&sort=ACCOUNT_CUSTOMER_ID asc&start=0 the *:* is doing you no good, I'd just remove it. defType=edismax probably isn't doing what you expect, you're not specifying any field

Re: searching for terms containing embedded spaces

2011-09-11 Thread Mark juszczec
The field's properties are: field name="CUSTOMER_TYPE_NM" type="string" indexed="true" stored="true" required="true" default="CUSTOMER_TYPE_NM_MISSING" There have been no changes since I last completely rebuilt the index. Is re-indexing done when an index is completely rebuilt with a a dataimpor

Re: searching for terms containing embedded spaces

2011-09-11 Thread Yonik Seeley
On Sun, Sep 11, 2011 at 1:39 PM, Mark juszczec wrote: > That's what I thought.  The problem is, its not and I am unsure what is > wrong. What is the fieldType definition for that field? Did you change it without re-indexing? -Yonik http://www.lucene-eurocon.com - The Lucene/Solr User Conference

Re: searching for terms containing embedded spaces

2011-09-11 Thread Mark juszczec
That's what I thought. The problem is, its not and I am unsure what is wrong. On Sun, Sep 11, 2011 at 1:35 PM, Yonik Seeley wrote: > On Sun, Sep 11, 2011 at 1:15 PM, Mark juszczec > wrote: > > I am looking for a text string with a single, embedded space. For the > > purposes of this example,

Re: searching for terms containing embedded spaces

2011-09-11 Thread Yonik Seeley
On Sun, Sep 11, 2011 at 1:15 PM, Mark juszczec wrote: > 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 stri

Re: searching for terms containing embedded spaces

2011-09-11 Thread Mark juszczec
> > 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

Re: searching for terms containing embedded spaces

2011-09-11 Thread Yonik Seeley
On Sun, Sep 11, 2011 at 12:56 PM, Mark juszczec wrote: > 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. URL encoding is

Re: searching for terms containing embedded spaces

2011-09-11 Thread Mark juszczec
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 fiel

Re: searching for terms containing embedded spaces

2011-09-11 Thread Erick Erickson
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 fie

searching for terms containing embedded spaces

2011-09-09 Thread Mark juszczec
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