On 30-Nov-07, at 4:27 PM, Dave C. wrote:

When I perform a query on a field using a single character, I get no results back: for example, if i search on the "description" field for the character 'a', i.e. (description:a), I get no results back. I would like to get all documents where the letter 'a' appears in the description field.

I haven't played around with any of the settings in my schema.xml, so I am wondering if someone could point out how I could configure Solr such that it will return me all documents with an 'a' (or any arbitrary character) in the description field. If this could be expanded to match any sub-word (i.e. match "the" in "weather") that would be great as well.

Any single character, or just 'a'? IR systems often strip out stop words (extremely common) words for efficiency reasons. This is configured via the "StopFilterFactory" in schema.xml: just remove it from the field you are interested in and reindex.

-Mike

Reply via email to