Solr - Lucene Query

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Solr - Lucene Query

Jae Joo
<doc>
<field name="trade1"><![CDATA[Appraisal Station, The]]></field>
</doc>

In the schema.xml, this fiend is defined by <field name="trade1" type="text"
indexed="true"  />



Is there any way to find the document by querying - The Appraisal Station?


Thanks,
Jae
Reply | Threaded
Open this post in threaded view
|

Re: Solr - Lucene Query

Mike Klaas
On 4-Oct-07, at 11:07 AM, Jae Joo wrote:

> <doc>
> <field name="trade1"><![CDATA[Appraisal Station, The]]></field>
> </doc>
>
> In the schema.xml, this fiend is defined by <field name="trade1"  
> type="text"
> indexed="true"  />
>
>
>
> Is there any way to find the document by querying - The Appraisal  
> Station?

sure: if you query trade1:(the appraisal station), that document  
hsould be found.  If you want _only_ that document to match, you  
should try something like a phrase query with a bit fo slop:

trade1:"the appraisal station"~10

-Mike