You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Abhishek tiwari <ab...@gmail.com> on 2012/03/16 13:16:33 UTC
Query results
Please point me where i am wrong :
query: *multiplex_name:Agent Vinod*
<field name="multiplex_name" type="string" stored="true"
indexed="true"/></fields>
<defaultSearchField>headline1</defaultSearchField>
when i search above got few result matching *headline1 (default search
feild) ..
why it it so ?
*
Re: Query results
Posted by Tanguy Moal <ta...@gmail.com>.
That's because of the space.
If you want to include the space in the search query (performing exact
match), then use double quotes around your search terms :
q=multiplex_name:"Agent Vinod"
Online documentation :
* http://wiki.apache.org/solr/SolrQuerySyntax
*
http://lucene.apache.org/core/old_versioned_docs/versions/3_4_0/queryparsersyntax.html
--
Tanguy
Le 16/03/2012 13:16, Abhishek tiwari a écrit :
> Please point me where i am wrong :
>
> query: *multiplex_name:Agent Vinod*
>
> <field name="multiplex_name" type="string" stored="true"
> indexed="true"/></fields>
>
> <defaultSearchField>headline1</defaultSearchField>
>
>
> when i search above got few result matching *headline1 (default search
> feild) ..
> why it it so ?
>
>
>
> *
>