Re: Problem with autogeneratePhraseQueries
Thank you very much for answer. You were right. There was no luceneMatchVersion in solrconfig.xml of our dev core. We thought that values not present in core configuration are copied from main solrconfig.xml. I will investigate if our administrators did something wrong during upgrade to 3.1. On Tue, Apr 26, 2011 at 1:35 PM, Robert Muir wrote: > What do you have in solrconfig.xml for luceneMatchVersion? > > If you don't set this, then its going to default to "Lucene 2.9" > emulation so that old solr 1.4 configs work the same way. I tried your > example and it worked fine here, and I'm guessing this is probably > whats happening. > > the default in the example/solrconfig.xml looks like this: > > > LUCENE_31 > > On Tue, Apr 26, 2011 at 6:51 AM, Solr Beginner > wrote: > > Hi, > > > > I'm new to solr. My solr instance version is: > > > > Solr Specification Version: 3.1.0 > > Solr Implementation Version: 3.1.0 1085815 - grantingersoll - 2011-03-26 > > 18:00:07 > > Lucene Specification Version: 3.1.0 > > Lucene Implementation Version: 3.1.0 1085809 - 2011-03-26 18:06:58 > > Current Time: Tue Apr 26 08:01:09 CEST 2011 > > Server Start Time:Tue Apr 26 07:59:05 CEST 2011 > > > > I have following definition for textgen type: > > > > positionIncrementGap="100" > > autoGeneratePhraseQueries="false"> > > > > > > > words="stopwords.txt" enablePositionIncrements="true" /> > > > generateNumberParts="1" catenateWords="1" catenateNumbers="1" > > preserveOriginal="1"/> > > > > maxGramSize="15" > > side="front" preserveOriginal="1"/> > > > > > > > > > ignoreCase="true" expand="true"/> > > > ignoreCase="true" > > words="stopwords.txt" > > enablePositionIncrements="true"/> > > > generateNumberParts="1" catenateWords="0" catenateNumbers="0" > > catenateAll="0" preserveOriginal="1"/> > > > > > > > > > > > > I'm using this type for name field in my index. As you can see I'm > > using autoGeneratePhraseQueries="false" but for query sony vaio 4gb I'm > > getting following query in debug: > > > > > > sony vaio 4gb > > sony vaio 4gb > > +name:sony +name:vaio > +MultiPhraseQuery(name:"(4gb > > 4) gb") > > +name:sony +name:vaio +name:"(4gb 4) > > gb" > > > > Do you have any idea how can I avoid this MultiPhraseQuery? > > > > Best Regards, > > solr_beginner > > >
Re: Problem with autogeneratePhraseQueries
Thank you very much for answer. You were right. There was no luceneMatchVersion in solrconfig.xml of our dev core. We thought that values not present in core configuration are copied from main solrconfig.xml. I will investigate if our administrators did something wrong during upgrade to 3.1. On Tue, Apr 26, 2011 at 1:35 PM, Robert Muir wrote: > What do you have in solrconfig.xml for luceneMatchVersion? > > If you don't set this, then its going to default to "Lucene 2.9" > emulation so that old solr 1.4 configs work the same way. I tried your > example and it worked fine here, and I'm guessing this is probably > whats happening. > > the default in the example/solrconfig.xml looks like this: > > > LUCENE_31 > > On Tue, Apr 26, 2011 at 6:51 AM, Solr Beginner > wrote: > > Hi, > > > > I'm new to solr. My solr instance version is: > > > > Solr Specification Version: 3.1.0 > > Solr Implementation Version: 3.1.0 1085815 - grantingersoll - 2011-03-26 > > 18:00:07 > > Lucene Specification Version: 3.1.0 > > Lucene Implementation Version: 3.1.0 1085809 - 2011-03-26 18:06:58 > > Current Time: Tue Apr 26 08:01:09 CEST 2011 > > Server Start Time:Tue Apr 26 07:59:05 CEST 2011 > > > > I have following definition for textgen type: > > > > positionIncrementGap="100" > > autoGeneratePhraseQueries="false"> > > > > > > > words="stopwords.txt" enablePositionIncrements="true" /> > > > generateNumberParts="1" catenateWords="1" catenateNumbers="1" > > preserveOriginal="1"/> > > > > maxGramSize="15" > > side="front" preserveOriginal="1"/> > > > > > > > > > ignoreCase="true" expand="true"/> > > > ignoreCase="true" > > words="stopwords.txt" > > enablePositionIncrements="true"/> > > > generateNumberParts="1" catenateWords="0" catenateNumbers="0" > > catenateAll="0" preserveOriginal="1"/> > > > > > > > > > > > > I'm using this type for name field in my index. As you can see I'm > > using autoGeneratePhraseQueries="false" but for query sony vaio 4gb I'm > > getting following query in debug: > > > > > > sony vaio 4gb > > sony vaio 4gb > > +name:sony +name:vaio > +MultiPhraseQuery(name:"(4gb > > 4) gb") > > +name:sony +name:vaio +name:"(4gb 4) > > gb" > > > > Do you have any idea how can I avoid this MultiPhraseQuery? > > > > Best Regards, > > solr_beginner > > >
Re: Problem with autogeneratePhraseQueries
What do you have in solrconfig.xml for luceneMatchVersion? If you don't set this, then its going to default to "Lucene 2.9" emulation so that old solr 1.4 configs work the same way. I tried your example and it worked fine here, and I'm guessing this is probably whats happening. the default in the example/solrconfig.xml looks like this: LUCENE_31 On Tue, Apr 26, 2011 at 6:51 AM, Solr Beginner wrote: > Hi, > > I'm new to solr. My solr instance version is: > > Solr Specification Version: 3.1.0 > Solr Implementation Version: 3.1.0 1085815 - grantingersoll - 2011-03-26 > 18:00:07 > Lucene Specification Version: 3.1.0 > Lucene Implementation Version: 3.1.0 1085809 - 2011-03-26 18:06:58 > Current Time: Tue Apr 26 08:01:09 CEST 2011 > Server Start Time:Tue Apr 26 07:59:05 CEST 2011 > > I have following definition for textgen type: > > autoGeneratePhraseQueries="false"> > > > words="stopwords.txt" enablePositionIncrements="true" /> > generateNumberParts="1" catenateWords="1" catenateNumbers="1" > preserveOriginal="1"/> > > side="front" preserveOriginal="1"/> > > > > ignoreCase="true" expand="true"/> > ignoreCase="true" > words="stopwords.txt" > enablePositionIncrements="true"/> > generateNumberParts="1" catenateWords="0" catenateNumbers="0" > catenateAll="0" preserveOriginal="1"/> > > > > > > I'm using this type for name field in my index. As you can see I'm > using autoGeneratePhraseQueries="false" but for query sony vaio 4gb I'm > getting following query in debug: > > > sony vaio 4gb > sony vaio 4gb > +name:sony +name:vaio +MultiPhraseQuery(name:"(4gb > 4) gb") > +name:sony +name:vaio +name:"(4gb 4) > gb" > > Do you have any idea how can I avoid this MultiPhraseQuery? > > Best Regards, > solr_beginner >