Hi Shalin, "foobar_facet" is a dynamic field. Its defined in my schema like this:
<dynamicField name="*_facet" type="string" indexed="true" stored="true"/> I have the default search field set to text. Can I use more than one default search field? <defaultSearchField>text</defaultSearchField> Thanks, - Jake On Thu, Aug 14, 2008 at 2:48 PM, Shalin Shekhar Mangar <[EMAIL PROTECTED]> wrote: > Hi Jake, > > What is the type of the foobar_facet field in your schema.xml ? > Did you add foobar_facet as the default search field? > > On Fri, Aug 15, 2008 at 3:13 AM, Jake Conk <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I inserted the following documents into Solr: >> >> >> ------------------------------------------------------------------------------------------- >> >> <add> >> <doc> >> <field name="id">124</field> >> <field name="foobar_facet">Jake Conk</field> >> </doc> >> <doc> >> <field name="id">125</field> >> <field name="foobar_facet">Jake Conk</field> >> </doc> >> </add> >> >> >> ------------------------------------------------------------------------------------------- >> >> id is the only required integer field. >> foobar_facet is a dynamic string field. >> >> When I try to search for anything with the word Jake in it the >> following ways I get no results. >> >> >> select?q=Jake >> select?q=Jake* >> >> >> I thought one of those two should work but the only way I got it to >> work was by specifying which field "Jake" is in along with a wild >> card. >> >> >> select?q=foobar_facet:Jake* >> >> >> 1) Does this mean for each field I would like to search if Jake exists >> I would have to add each field like I did above to the query? >> >> 2) How would I search if I want to find the name Jake anywhere in the >> string? The documentation >> (http://lucene.apache.org/java/docs/queryparsersyntax.html) states >> that I cannot use a wildcard as the first character such as *Jake* >> >> Thanks, >> - Jake >> > > > > -- > Regards, > Shalin Shekhar Mangar. >