On Tue, Jul 22, 2008 at 11:08 AM, Ian Connor <[EMAIL PROTECTED]> wrote:
> How can I require an exact field match in a query. For instance, if a
> title field contains "Nature" or "Nature Cell Biology", when I search
> title:Nature I only want "Nature" and not "Nature Cell Biology". Is
> that something I do as a query or do I need to re index it with the
> field defined in a certain way?
>
> I have this definition now - but it returns all titles that contain
> "Nature" rather than just the ones that equals it exactly.
>
>
>   <field name="title" type="string" indexed="true" stored="true"
> omitNorms="true"/>

That field definition should do it.
Try title:Nature  it may be that you have a default search field that
has a different analyzer configured.
If that doesn't work, make sure you have reindexed after your schema changes.

-Yonik

Reply via email to