Suppose I want to do a "MATCHES" search on an document attribute (Description, 
for example) where my search string must match the entire contents of the 
Description attribute.

So if the Description = dog cat pig, and I specify "MATCHES" as my search 
operator, then the only valid search string is "dog cat pig".

I have the field defined in my schema like this:

managed-schema.xml:    <dynamicField name="Zs*" type="text_general"    
indexed="true"  stored="false"  multiValued="true"/>
managed-schema.xml:    <copyField source="Zs*" dest="_text_"/>

Currently, if the contents of the Description are "dog pig cat" and I do this 
search specifying only "dog pig", it still returns a hit:

http://host:8983/solr/solr1/select?q=(ZsDocumentDescription:"dog 
pig<http://host:8983/solr/solr1/select?q=(ZsDocumentDescription:%22dog%20pig>")

So it is looking for the search string being contained in the attribute, as 
opposed to an exact match.

Is there any query syntax that specifies to match the search string against the 
entire contents of the attribute?

Henry Farmerie

Siemens Product Lifecycle Management Software Inc.
Communications and Government Affairs
Lifecycle Coll

Shoreview, MN  55126 United States
Fax      :+1 (651) 855-6280
henry.farme...@siemens.com <mailto:henry.farme...@siemens.com>

Reply via email to