I really, really, really don't like the fact that you have a space in your field name. Adding &debugQuery=on to your query should show you the results of parsing the query. What I *expect*, but haven't tested, is one of two things: 1> the query parser interprets Entrez ID:335 as something like defaultsearchfield:Entrez ID:335 in fact, I'm surprised it doesn't throw an error unless you have a field named ID...... 2> you aren't specifying the field in the first place and you're getting defaultsearchfield:335
Please do yourself a favor and use lowercase and underscores for your field names, historically, there have been some corner cases where capitals produce surprising results, in some of the contribs as I remember.... If none of this is the problem, can you post the results of adding &debugQuery=on to your URL? Best Erick On Wed, Feb 1, 2012 at 6:17 PM, Yuhao <nfsvi...@yahoo.com> wrote: > Oops, you're right about the typo! However, after I changed it to: > > <field multiValued="false" name="Entrez ID" type="string" indexed="true" > stored="true" required="true" /> > > > , searching for "335" still returns no result. I did delete the index and > re-index the documents after the change. Interestingly, adding * to the > search does produce results, and it seems to be the only way to find anything. > > * by itself finds 549/757 results. > *:* finds all 757 results. > *[a-zA-Z]* finds nothing. > *[0-9]* finds some results. For example, *33* finds 7 results, but it does > NOT find the doc with id=335. > > > The results are interesting because I definitely have many indexed fields > with [a-zA-Z] characters, but nothing at all is found. > > > > ________________________________ > From: Ahmet Arslan <iori...@yahoo.com> > To: solr-user@lucene.apache.org; Yuhao <nfsvi...@yahoo.com> > Sent: Wednesday, February 1, 2012 5:59 PM > Subject: Re: Help: nothing is searchable in Solr > >> For example, I defined a field called "Entrez ID" in my >> schema.xml file: >> >> <field multiValued="false" name="Entrez ID" >> type="string" index="true" stored="true" required="true" >> /> > > It could be the typo: index="true" should be indexed="true"