lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Schiettecatte <fschietteca...@gmail.com>
Subject Re: Mandatory words search in SOLR
Date Mon, 13 May 2013 12:01:29 GMT
Kamal

You could also use the 'mm' parameter to require a minimum match, or you could prepend '+'
to each required term.

Cheers

François


On May 13, 2013, at 7:57 AM, Kamal Palei <palei.kamal@gmail.com> wrote:

> Hi Rafał Kuć
> I added q.op=AND as per you suggested. I see though some initial record
> document contains both keywords (*java* and *mysql*), towards end I see
> still there are number of
> documents, they have only one key word either *java* or *mysql*.
> 
> Is it the SOLR behaviour or can I ask for a *strict search only if all my
> keywords are present, then only* *fetch record* else not.
> 
> BR,
> Kamal
> 
> 
> 
> On Mon, May 13, 2013 at 4:02 PM, Rafał Kuć <r.kuc@solr.pl> wrote:
> 
>> Hello!
>> 
>> Change  the  default  query  operator. For example add the q.op=AND to
>> your query.
>> 
>> --
>> Regards,
>> Rafał Kuć
>> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
>> 
>>> Hi SOLR Experts
>>> When I search documents with keyword as *java, mysql* then I get the
>>> documents containing either *java* or *mysql* or both.
>> 
>>> Is it possible to get the documents those contains both *java* and
>> *mysql*.
>> 
>>> In that case, how the query would look like.
>> 
>>> Thanks a lot
>>> Kamal
>> 
>> 


Mime
View raw message