Re: Problem with autogeneratePhraseQueries

2011-04-28 Thread Marcin Kostuch
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: fieldCache only on stats page

2011-04-28 Thread Marcin Kostuch
Solr version:

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: Wed Apr 27 14:28:34 CEST 2011
Server Start Time:Wed Apr 27 11:07:00 CEST 2011

According to cache I can see only following informations:

CACHE

name:fieldCache
class:   org.apache.solr.search.SolrFieldCacheMBean
version: 1.0
description: Provides introspection of the Lucene FieldCache, this
is **NOT** a cache that is managed by Solr.
sourceid:$Id: SolrFieldCacheMBean.java 984594 2010-08-11 21:42:04Z 
yonik $
source:  $URL:
https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_1/solr/src/java/org/apache/solr/search/SolrFieldCacheMBean.java
$
name:fieldValueCache
class:   org.apache.solr.search.FastLRUCache
version: 1.0
description: Concurrent LRU Cache(maxSize=1, initialSize=10,
minSize=9000, acceptableSize=9500, cleanupThread=false)
sourceid:$Id: FastLRUCache.java 1065312 2011-01-30 16:08:25Z rmuir $
source:  $URL:
https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_1/solr/src/java/org/apache/solr/search/FastLRUCache.java
$

Nothing about filterCache or documentCache ;/

Best Regards,
Solr Beginner

On Wed, Apr 27, 2011 at 2:00 PM, Erick Erickson  wrote:
> There's nothing special you need to do to be able to view the various
> stats from admin/stats.jsp. If another look doesn't show them, could you
> post a screenshot?
>
> And please include the version of Solr you're using, I checked with 1.4.1.
>
> Best
> Erick
>
> On Wed, Apr 27, 2011 at 1:44 AM, Solr Beginner  wrote:
>> Hi,
>>
>> I can see only fieldCache (nothing about filter, query or document
>> cache) on stats page. What I'm doing wrong? We have two servers with
>> replication. There are two cores(prod, dev) on each server. Maybe I
>> have to add something to solrconfig.xml of cores?
>>
>> Best Regards,
>> Solr Beginner
>>
>