You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2010/06/18 19:10:30 UTC

svn commit: r956053 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Author: ehatcher
Date: Fri Jun 18 17:10:30 2010
New Revision: 956053

URL: http://svn.apache.org/viewvc?rev=956053&view=rev
Log:
enable spell checking buildOnCommit in example configuration, and default it into the /browse view

Modified:
    lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Modified: lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml?rev=956053&r1=956052&r2=956053&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml Fri Jun 18 17:10:30 2010
@@ -513,30 +513,44 @@
   -->
   <requestHandler name="/browse" class="solr.SearchHandler">
      <lst name="defaults">
-       <str name="wt">velocity</str>
 
+       <!-- VelocityResponseWriter settings -->
+       <str name="wt">velocity</str>
        <str name="v.template">browse</str>
        <str name="v.layout">layout</str>
        <str name="title">Solritas</str>
 
+       <!-- Query settings -->
        <str name="defType">dismax</str>
+       <str name="qf">
+          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
+       </str>
        <str name="q.alt">*:*</str>
        <str name="rows">10</str>
        <str name="fl">*,score</str>
 
+       <!-- Faceting defaults -->
        <str name="facet">on</str>
        <str name="facet.field">cat</str>
        <str name="facet.field">manu_exact</str>
        <str name="facet.mincount">1</str>
-       <str name="qf">
-          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
-       </str>
-       
+
+       <!-- Highlighting defaults -->
        <str name="hl">on</str>
        <str name="hl.fl">text features name</str>
        <str name="f.name.hl.fragsize">0</str>
        <str name="f.name.hl.alternateField">name</str>
+
+       <!-- Spell checking defaults -->
+       <str name="spellcheck">on</str>
+       <str name="spellcheck.collate">true</str>
+       <str name="spellcheck.onlyMorePopular">false</str>
+       <str name="spellcheck.extendedResults">false</str>
+       <str name="spellcheck.count">3</str>
      </lst>
+     <arr name="last-components">
+       <str>spellcheck</str>
+     </arr>
   </requestHandler>
   
 
@@ -694,6 +708,7 @@
       <str name="name">default</str>
       <str name="field">name</str>
       <str name="spellcheckIndexDir">./spellchecker</str>
+      <str name="buildOnCommit">true</str>
     </lst>
 
     <!-- a spellchecker that uses a different distance measure



Re: svn commit: r956053 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Posted by Mark Miller <ma...@gmail.com>.
On 6/18/10 1:29 PM, Yonik Seeley wrote:
> On Fri, Jun 18, 2010 at 1:10 PM,<eh...@apache.org>  wrote:
>> Author: ehatcher
>> Date: Fri Jun 18 17:10:30 2010
>> New Revision: 956053
>>
>> URL: http://svn.apache.org/viewvc?rev=956053&view=rev
>> Log:
>> enable spell checking buildOnCommit in example configuration, and default it into the /browse view
>
> Oh, no.... not a good idea.
> I wouldn't recommend that in production, and it's an even worse idea
> for the example.  Everyone is going to start wondering why commits all
> of a sudden take forever.
>
> -Yonik
> http://www.lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Yeah - seen that happen before!

-- 
- Mark

http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: svn commit: r956053 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Fri, Jun 18, 2010 at 1:34 PM, Erik Hatcher <er...@gmail.com> wrote:
> On Jun 18, 2010, at 1:29 PM, Yonik Seeley wrote:
>>
>> On Fri, Jun 18, 2010 at 1:10 PM,  <eh...@apache.org> wrote:
>>>
>>> Author: ehatcher
>>> Date: Fri Jun 18 17:10:30 2010
>>> New Revision: 956053
>>>
>>> URL: http://svn.apache.org/viewvc?rev=956053&view=rev
>>> Log:
>>> enable spell checking buildOnCommit in example configuration, and default
>>> it into the /browse view
>>
>> Oh, no.... not a good idea.
>> I wouldn't recommend that in production, and it's an even worse idea
>> for the example.  Everyone is going to start wondering why commits all
>> of a sudden take forever.
>
> ugh, ok.  what about buildOnOptimize then?  Will revert.

How about a button in the UI: "build spellcheck index"?

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: svn commit: r956053 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Posted by Erik Hatcher <er...@gmail.com>.
On Jun 18, 2010, at 1:29 PM, Yonik Seeley wrote:
> On Fri, Jun 18, 2010 at 1:10 PM,  <eh...@apache.org> wrote:
>> Author: ehatcher
>> Date: Fri Jun 18 17:10:30 2010
>> New Revision: 956053
>>
>> URL: http://svn.apache.org/viewvc?rev=956053&view=rev
>> Log:
>> enable spell checking buildOnCommit in example configuration, and  
>> default it into the /browse view
>
> Oh, no.... not a good idea.
> I wouldn't recommend that in production, and it's an even worse idea
> for the example.  Everyone is going to start wondering why commits all
> of a sudden take forever.

ugh, ok.  what about buildOnOptimize then?  Will revert.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: svn commit: r956053 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Fri, Jun 18, 2010 at 1:10 PM,  <eh...@apache.org> wrote:
> Author: ehatcher
> Date: Fri Jun 18 17:10:30 2010
> New Revision: 956053
>
> URL: http://svn.apache.org/viewvc?rev=956053&view=rev
> Log:
> enable spell checking buildOnCommit in example configuration, and default it into the /browse view

Oh, no.... not a good idea.
I wouldn't recommend that in production, and it's an even worse idea
for the example.  Everyone is going to start wondering why commits all
of a sudden take forever.

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org