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 Jorge Luis Betancourt Gonzalez <jl...@uci.cu> on 2012/10/04 17:06:26 UTC

Question about OR operator

Hi:

I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??

Thanks in advance!!
10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Jorge Luis Betancourt Gonzalez <jl...@uci.cu>.
Thanks a lot for all the replies, Chris it worked out with this mm value:

<str name="mm"
1<0%
</str>

If this version of solr is affected with the bug you pointed out, shouldn't fail with this value as well?

Greetings!

On Oct 4, 2012, at 8:48 PM, Jorge Luis Betancourt Gonzalez wrote:

> Hi Chris:
> 
> I'm using solr 3.6.1, is the bug present in this version?
> 
> Greetings!
> 
> On Oct 4, 2012, at 6:11 PM, Chris Hostetter wrote:
> 
>> 
>> : GRAVE: java.lang.NumberFormatException: For input string: "
>> : 	100
>> : 	"
>> : 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>> : 	at java.lang.Integer.parseInt(Integer.java:470)
>> : 	at java.lang.Integer.<init>(Integer.java:636)
>> : 	at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:691)
>> 
>> What version of Solr are you using?
>> 
>> That looks like a simple parsing bug that seems to have been fixed a while 
>> back (it's definitely not in the 4.0 branch)
>> 
>> can you try eliminating hte whitespace from your XML configured value...
>> 
>>        <str name="mm">100</str>
>> 
>> ...that should work arround the problem.
>> 
>> 
>> -Hoss
>> 
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>> 
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
> 
> 
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci
> 
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Jorge Luis Betancourt Gonzalez <jl...@uci.cu>.
Hi Chris:

I'm using solr 3.6.1, is the bug present in this version?

Greetings!

On Oct 4, 2012, at 6:11 PM, Chris Hostetter wrote:

> 
> : GRAVE: java.lang.NumberFormatException: For input string: "
> : 	100
> : 	"
> : 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> : 	at java.lang.Integer.parseInt(Integer.java:470)
> : 	at java.lang.Integer.<init>(Integer.java:636)
> : 	at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:691)
> 
> What version of Solr are you using?
> 
> That looks like a simple parsing bug that seems to have been fixed a while 
> back (it's definitely not in the 4.0 branch)
> 
> can you try eliminating hte whitespace from your XML configured value...
> 
>         <str name="mm">100</str>
> 
> ...that should work arround the problem.
> 
> 
> -Hoss
> 
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Chris Hostetter <ho...@fucit.org>.
: GRAVE: java.lang.NumberFormatException: For input string: "
: 	100
: 	"
: 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
: 	at java.lang.Integer.parseInt(Integer.java:470)
: 	at java.lang.Integer.<init>(Integer.java:636)
: 	at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:691)

What version of Solr are you using?

That looks like a simple parsing bug that seems to have been fixed a while 
back (it's definitely not in the 4.0 branch)

can you try eliminating hte whitespace from your XML configured value...

         <str name="mm">100</str>

...that should work arround the problem.


-Hoss

Re: Question about OR operator

Posted by Jorge Luis Betancourt Gonzalez <jl...@uci.cu>.
Thanks for the quick response, I got the same response, what I'm trying to accomplish is to get straight OR between all the clauses or terms in my query, the value I should use is 0 right?


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Otis Gospodnetic <ot...@gmail.com>.
Try 0% instead of just 0.

Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Oct 4, 2012 at 1:50 PM, Jorge Luis Betancourt Gonzalez
<jl...@uci.cu> wrote:
> This is the error:
>
> GRAVE: java.lang.NumberFormatException: For input string: "
>         100
>         "
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:470)
>         at java.lang.Integer.<init>(Integer.java:636)
>         at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:691)
>         at org.apache.solr.util.SolrPluginUtils.setMinShouldMatch(SolrPluginUtils.java:656)
>         at org.apache.solr.search.DisMaxQParser.getUserQuery(DisMaxQParser.java:210)
>         at org.apache.solr.search.DisMaxQParser.addMainQuery(DisMaxQParser.java:166)
>         at org.apache.solr.search.DisMaxQParser.parse(DisMaxQParser.java:77)
>         at org.apache.solr.search.QParser.getQuery(QParser.java:143)
>         at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:105)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
>         at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
>         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
>
> This is the parameter in my solrconfig.xml
>
>         <str name="mm">
>         0
>         </str>
>
> On Oct 4, 2012, at 1:46 PM, Otis Gospodnetic wrote:
>
>> What's the error Jorge?
>>
>> Otis
>> --
>> Search Analytics - http://sematext.com/search-analytics/index.html
>> Performance Monitoring - http://sematext.com/spm/index.html
>>
>>
>> On Thu, Oct 4, 2012 at 1:36 PM, Jorge Luis Betancourt Gonzalez
>> <jl...@uci.cu> wrote:
>>> Hi:
>>>
>>> Thanks for all the replies, right now I have this in my mm parameter:
>>>
>>>        <str name="mm">
>>>        2<-1 5<-2 6<90%
>>>        </str>
>>>
>>> I'm trying to get an straight OR between all the terms in my query, should I set the mm parameter to 1? because this gave an error.
>>>
>>> Greetings!
>>>
>>> On Oct 4, 2012, at 11:06 AM, Jorge Luis Betancourt Gonzalez wrote:
>>>
>>>> Hi:
>>>>
>>>> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
>>>>
>>>> Thanks in advance!!
>>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>>>
>>>> http://www.uci.cu
>>>> http://www.facebook.com/universidad.uci
>>>> http://www.flickr.com/photos/universidad_uci
>>>>
>>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>>>
>>>> http://www.uci.cu
>>>> http://www.facebook.com/universidad.uci
>>>> http://www.flickr.com/photos/universidad_uci
>>>
>>>
>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>>
>>> http://www.uci.cu
>>> http://www.facebook.com/universidad.uci
>>> http://www.flickr.com/photos/universidad_uci
>>
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
>
>
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Jorge Luis Betancourt Gonzalez <jl...@uci.cu>.
This is the error:

GRAVE: java.lang.NumberFormatException: For input string: "
	100
	"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:470)
	at java.lang.Integer.<init>(Integer.java:636)
	at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:691)
	at org.apache.solr.util.SolrPluginUtils.setMinShouldMatch(SolrPluginUtils.java:656)
	at org.apache.solr.search.DisMaxQParser.getUserQuery(DisMaxQParser.java:210)
	at org.apache.solr.search.DisMaxQParser.addMainQuery(DisMaxQParser.java:166)
	at org.apache.solr.search.DisMaxQParser.parse(DisMaxQParser.java:77)
	at org.apache.solr.search.QParser.getQuery(QParser.java:143)
	at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:105)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
	at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)

This is the parameter in my solrconfig.xml

        <str name="mm">
        0
        </str>

On Oct 4, 2012, at 1:46 PM, Otis Gospodnetic wrote:

> What's the error Jorge?
> 
> Otis
> --
> Search Analytics - http://sematext.com/search-analytics/index.html
> Performance Monitoring - http://sematext.com/spm/index.html
> 
> 
> On Thu, Oct 4, 2012 at 1:36 PM, Jorge Luis Betancourt Gonzalez
> <jl...@uci.cu> wrote:
>> Hi:
>> 
>> Thanks for all the replies, right now I have this in my mm parameter:
>> 
>>        <str name="mm">
>>        2<-1 5<-2 6<90%
>>        </str>
>> 
>> I'm trying to get an straight OR between all the terms in my query, should I set the mm parameter to 1? because this gave an error.
>> 
>> Greetings!
>> 
>> On Oct 4, 2012, at 11:06 AM, Jorge Luis Betancourt Gonzalez wrote:
>> 
>>> Hi:
>>> 
>>> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
>>> 
>>> Thanks in advance!!
>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>> 
>>> http://www.uci.cu
>>> http://www.facebook.com/universidad.uci
>>> http://www.flickr.com/photos/universidad_uci
>>> 
>>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>> 
>>> http://www.uci.cu
>>> http://www.facebook.com/universidad.uci
>>> http://www.flickr.com/photos/universidad_uci
>> 
>> 
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>> 
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
> 
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Otis Gospodnetic <ot...@gmail.com>.
What's the error Jorge?

Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Oct 4, 2012 at 1:36 PM, Jorge Luis Betancourt Gonzalez
<jl...@uci.cu> wrote:
> Hi:
>
> Thanks for all the replies, right now I have this in my mm parameter:
>
>         <str name="mm">
>         2<-1 5<-2 6<90%
>         </str>
>
> I'm trying to get an straight OR between all the terms in my query, should I set the mm parameter to 1? because this gave an error.
>
> Greetings!
>
> On Oct 4, 2012, at 11:06 AM, Jorge Luis Betancourt Gonzalez wrote:
>
>> Hi:
>>
>> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
>>
>> Thanks in advance!!
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
>>
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
>
>
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Jorge Luis Betancourt Gonzalez <jl...@uci.cu>.
Hi:

Thanks for all the replies, right now I have this in my mm parameter:

        <str name="mm">
        2<-1 5<-2 6<90%
        </str>

I'm trying to get an straight OR between all the terms in my query, should I set the mm parameter to 1? because this gave an error.

Greetings!

On Oct 4, 2012, at 11:06 AM, Jorge Luis Betancourt Gonzalez wrote:

> Hi:
> 
> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
> 
> Thanks in advance!!
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci
> 
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Re: Question about OR operator

Posted by Torben Honigbaum <to...@neuland-bfi.de>.
Hi Jorge,

maybe I've defined 

	<solrQueryParser defaultOperator="AND"/>

in your schema.xml

Torben

Am 04.10.2012 um 17:06 schrieb Jorge Luis Betancourt Gonzalez:

> Hi:
> 
> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
> 
> Thanks in advance!!
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
> 
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci


Re: Question about OR operator

Posted by Jack Krupansky <ja...@basetechnology.com>.
Maybe the "mm" (minimum match) parameter is set to "100%" which is the same 
as using the "AND" operator. Set "mm" to "1" or "50%" or "25%" or whatever 
makes sense for your app.

-- Jack Krupansky

-----Original Message----- 
From: Jorge Luis Betancourt Gonzalez
Sent: Thursday, October 04, 2012 11:06 AM
To: solr-user@lucene.apache.org
Subject: Question about OR operator

Hi:

I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of 
understanding. I'm building a search engine, using of course solr to store 
the inverted index, so far so good. When I search for a term, let's say 
"java" I get 761 results, then querying the index with a "php" term give me 
3194 results found. So if a do a query for java php (without any quotas) I 
suppose that solr will interpret this as an OR between the two terms, 
correct? so the results should be the JOIN between the two subsets of 
results? so can anyone  explain why I get less results searching for the 
last query? java php without any quotes??

Thanks in advance!!
10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS 
INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci 


Re: Question about OR operator

Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Jorge,

Have a look at http://wiki.apache.org/solr/ExtendedDisMax#mm_.28Minimum_.27Should.27_Match.29

Have a look at http://wiki.apache.org/solr/CommonQueryParameters#Debugging
for info about &debugQuery=true and friends.

Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Oct 4, 2012 at 11:06 AM, Jorge Luis Betancourt Gonzalez
<jl...@uci.cu> wrote:
> Hi:
>
> I'm having an issue with solr 3.6.1 and I'm sensing that is a lack  of understanding. I'm building a search engine, using of course solr to store the inverted index, so far so good. When I search for a term, let's say "java" I get 761 results, then querying the index with a "php" term give me 3194 results found. So if a do a query for java php (without any quotas) I suppose that solr will interpret this as an OR between the two terms, correct? so the results should be the JOIN between the two subsets of results? so can anyone  explain why I get less results searching for the last query? java php without any quotes??
>
> Thanks in advance!!
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci