lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uri Boness <ubon...@gmail.com>
Subject Re: solr nutch url indexing
Date Tue, 25 Aug 2009 11:29:11 GMT
It seems to me that this configuration actually does what you want - 
queries on "title" mostly. The default search field doesn't influence a 
dismax query. I would suggest you to include the debugQuery=true 
parameter, it will help you figure out how the matching is performed.

You can read more about dismax queries here: 
http://wiki.apache.org/solr/DisMaxRequestHandler



Thibaut Lassalle wrote:
> Thanks for your help.
>
> I use the default Nutch configuration and I use solrindex to give the Nutch
> result to Solr. I have results when I query therefore Nutch works properly
> (it gives a url, title, content ...)
>
> I would like to query on Solr to emphase the "title" field and not the
> "content" field.
>
> Here is a sample of my "shema.xml"
>
> ..
> <uniqueKey>id</uniqueKey>
> <defaultSearchField>content</defaultSearchField>
> <solrQueryParser defaultOperator="AND"/>
> <copyField source="url" dest="id"/>
> ...
>
>
> Here is a sample of my "solrconfig.xml"
>
> <requestHandler name="/nutch" class="solr.SearchHandler" >
>     <lst name="defaults">
>         <str name="defType">dismax</str>
>         <str name="echoParams">explicit</str>
>         <float name="tie">0.01</float>
>         <str name="qf">content^0.5 anchor^1.0 title^5.2</str>
>         <str name="pf">content^0.5 anchor^1.5 title^5.2 site^1.5</str>
>         <str name="fl">url</str>
>         <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
>         <int name="ps">100</int>
>         <bool hl="true"/>
>         <str name="q.alt">*:*</str>
>         <str name="hl.fl">title url content</str>
>         <str name="f.title.hl.fragsize">0</str>
>         <str name="f.title.hl.alternateField">title</str>
>         <str name="f.url.hl.fragsize">0</str>
>         <str name="f.url.hl.alternateField">url</str>
>         <str name="f.content.hl.fragmenter">regex</str>
>     </lst>
> </requestHandler>
>
>
> This configuration query on "content" only.
> How to I change them to query mostly on "title" ?
>
> I tried to change "defaultSearchField" to "title" but it doesn't work.
>
> Where can I find doc on the "solr.SearchHandler" ?
>
> Thanks
> t.
>
>   

Mime
View raw message