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.

Reply via email to