nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mr Shore" <shore.cl...@gmail.com>
Subject Re: how do add a new filed and sort on this field
Date Mon, 23 Jun 2008 15:26:30 GMT
I still have a doubt
will the following statement store a duplicate value of dateString?

new Field("date", dateString, Field.Store.YES, Field.Index.UN_TOKENIZED)

2008/6/23 Mr Shore <shore.cloud@gmail.com>:

> It seems I've fixed the problem simply by change one line in
> MoreIndexingFilter.java @122
> doc.add(new Field("date", dateString, Field.Store.NO,
> Field.Index.UN_TOKENIZED))
> ==>
> doc.add(new Field("date", dateString, Field.Store.YES,
> Field.Index.UN_TOKENIZED))
> now the result can be sort by date....
>
>
> 2008/6/23 Mr Shore <shore.cloud@gmail.com>:
>
>> I've found the link here
>> http://wiki.apache.org/nutch/WritingPluginExample-0.9
>> but not the case fit for me...
>>
>> 2008/6/23 Mr Shore <shore.cloud@gmail.com>:
>>
>> Sorry for my late reply,just return from travelling...
>>> I think you got me right but the solution is not the case
>>> in my opinion I should modify the indexer to make it sortable by certain
>>> field,not the searcher
>>> is it?
>>> or could you provide a link?
>>> thanks very much
>>>
>>> 2008/6/21 All day coders <rac.nosotros@gmail.com>:
>>>
>>>
>>>>
>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <shore.cloud@gmail.com>
>>>> wrote:
>>>>
>>>>> I've just launched nutch in eclipse very hard
>>>>> and now I want to add this sorting feature
>>>>
>>>>
>>>> I assume you want to sort your search results by a certain field. If
>>>> that's the case the Nutch API provides
>>>> ways of doing so. Take a look to org.apache.nutch.searcher.NutchBean.
>>>> search  (there are a few overload options). Would be nice if you explain
how
>>>> are you planning to use Nutch.
>>>>
>>>>
>>>>>
>>>>> but I don't know which file(s) should I modify to make it work?
>>>>> I don't want to add a plugin because it's too much complicated for me
>>>>> now
>>>>> what I want to do is just modify a few rows in certain files and that's
>>>>> all
>>>>> Any advice is greatly apreciated!
>>>>
>>>>
>>>> Usually configuring a new plugin is just about modifying your
>>>> nutch-site.xml file and adding the plugin name in the right place.
>>>>
>>>> Regards
>>>>                    Yoanis
>>>>
>>>>
>>>>
>>>>
>>>
>>
>

Mime
View raw message