lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emir Arnautovic <>
Subject Re: implement exact match for one of the search fields only?
Date Fri, 29 Jan 2016 11:42:31 GMT
Hi Derek,
What if it does not match other fields but just exact match. From 
original question I assume it should return such results. It seems to me 
that you are AND-ing your fields and that is the reason why your query 
is not returning anything. Can you try just exact match field and see if 
it will return match.

Maybe it is best if you explain us what you want with couple of 
documents/query/result and we can give you suggestions for config and query.


Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support *

On 29.01.2016 02:03, Derek Poh wrote:
> Hi Emir
> For the other search fields, if they have matches it should be return.
> On 1/28/2016 8:17 PM, Emir Arnautovic wrote:
>> Hi Derek,
>> It is not clear what you are trying to achieve: "one of the search 
>> fields is an exact phrase match while the rest of the search fields 
>> can be exact or partial matches". What does "while" mean - it has to 
>> match in other fields as well or result should be scored better if it 
>> does but not mandatory to match?
>> For exact match you can use string type instead of text.
>> For querying multiple fields you can take a look at (e)dismax query 
>> parser.
>> Regards,
>> Emir
> ----------------------
> This e-mail (including any attachments) may contain confidential 
> and/or privileged information. If you are not the intended recipient 
> or have received this e-mail in error, please inform the sender 
> immediately and delete this e-mail (including any attachments) from 
> your computer, and you must not use, disclose to anyone else or copy 
> this e-mail (including any attachments), whether in whole or in part.
> This e-mail and any reply to it may be monitored for security, legal, 
> regulatory compliance and/or other appropriate reasons.

View raw message