You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Mr Shore <sh...@gmail.com> on 2008/06/19 09:08:12 UTC
how do add a new filed and sort on this field
I've just launched nutch in eclipse very hard
and now I want to add this sorting feature
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!
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@gmail.com>.
or what's the difference between debug mode and release mode?
I've make it work in debug mode but failed in release mode,
and still haven't got a solution
2008/6/24 Mr Shore <sh...@gmail.com>:
> What's the difference between cygwin and vmware?
> I'm running well in vmware linux but failed the job in cygwin...
>
>
> 2008/6/24 Mr Shore <sh...@gmail.com>:
>
>> by the way
>> I found date sortable by the code in MoreIndexingFilter.java @line 122
>> doc.add(new Field("date", dateString, Field.Store.NO,
>> Field.Index.UN_TOKENIZED));
>> and found sorting reversable by the code in search.jsp @line 105
>> String params = "&hitsPerPage="+hitsPerPage
>> +(sort==null ? "" : "&sort="+sort+(reverse?"&reverse=true":""));
>>
>> I'm using nutch 0.9
>>
>> 2008/6/24 Mr Shore <sh...@gmail.com>:
>>
>> I got it
>>> Now I'm confronting the problem that
>>> the reverse in query doesn't work
>>>
>>> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=false
>>> this is my query and the result is the same with the following query
>>>
>>> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=true
>>> which replaced reverse=false with reverse=true
>>> why is it like this?
>>> 2008/6/23 All day coders <ra...@gmail.com>:
>>>
>>> well the field will be indexed and stored, so you will have the value
>>>> stored in the index.
>>>>
>>>>
>>>> On Mon, Jun 23, 2008 at 11:26 AM, Mr Shore <sh...@gmail.com>
>>>> wrote:
>>>>
>>>>> 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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@gmail.com>.
What's the difference between cygwin and vmware?
I'm running well in vmware linux but failed the job in cygwin...
2008/6/24 Mr Shore <sh...@gmail.com>:
> by the way
> I found date sortable by the code in MoreIndexingFilter.java @line 122
> doc.add(new Field("date", dateString, Field.Store.NO,
> Field.Index.UN_TOKENIZED));
> and found sorting reversable by the code in search.jsp @line 105
> String params = "&hitsPerPage="+hitsPerPage
> +(sort==null ? "" : "&sort="+sort+(reverse?"&reverse=true":""));
>
> I'm using nutch 0.9
>
> 2008/6/24 Mr Shore <sh...@gmail.com>:
>
> I got it
>> Now I'm confronting the problem that
>> the reverse in query doesn't work
>>
>> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=false
>> this is my query and the result is the same with the following query
>>
>> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=true
>> which replaced reverse=false with reverse=true
>> why is it like this?
>> 2008/6/23 All day coders <ra...@gmail.com>:
>>
>> well the field will be indexed and stored, so you will have the value
>>> stored in the index.
>>>
>>>
>>> On Mon, Jun 23, 2008 at 11:26 AM, Mr Shore <sh...@gmail.com>
>>> wrote:
>>>
>>>> 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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@gmail.com>.
by the way
I found date sortable by the code in MoreIndexingFilter.java @line 122
doc.add(new Field("date", dateString, Field.Store.NO,
Field.Index.UN_TOKENIZED));
and found sorting reversable by the code in search.jsp @line 105
String params = "&hitsPerPage="+hitsPerPage
+(sort==null ? "" : "&sort="+sort+(reverse?"&reverse=true":""));
I'm using nutch 0.9
2008/6/24 Mr Shore <sh...@gmail.com>:
> I got it
> Now I'm confronting the problem that
> the reverse in query doesn't work
>
> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=false
> this is my query and the result is the same with the following query
>
> http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=true
> which replaced reverse=false with reverse=true
> why is it like this?
> 2008/6/23 All day coders <ra...@gmail.com>:
>
> well the field will be indexed and stored, so you will have the value
>> stored in the index.
>>
>>
>> On Mon, Jun 23, 2008 at 11:26 AM, Mr Shore <sh...@gmail.com> wrote:
>>
>>> 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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@gmail.com>.
I got it
Now I'm confronting the problem that
the reverse in query doesn't work
http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=false
this is my query and the result is the same with the following query
http://localhost:8080/search.jsp?query=hardware+&lang=zh&hitsPerPage=10&hitsPerSite=0&clustering=&sort=date&reverse=true
which replaced reverse=false with reverse=true
why is it like this?
2008/6/23 All day coders <ra...@gmail.com>:
> well the field will be indexed and stored, so you will have the value
> stored in the index.
>
>
> On Mon, Jun 23, 2008 at 11:26 AM, Mr Shore <sh...@gmail.com> wrote:
>
>> 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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>>>
>>>>>
>>>>>>
>>>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by All day coders <ra...@gmail.com>.
well the field will be indexed and stored, so you will have the value stored
in the index.
On Mon, Jun 23, 2008 at 11:26 AM, Mr Shore <sh...@gmail.com> wrote:
> 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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>>
>>>>
>>>>>
>>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@gmail.com>.
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 <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>>
>>>
>>>>
>>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@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 <sh...@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 <sh...@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 <ra...@gmail.com>:
>>
>>
>>>
>>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>>
>>>
>>>
>>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@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 <sh...@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 <ra...@gmail.com>:
>
>
>>
>> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>>
>>
>>
>>
>
Re: how do add a new filed and sort on this field
Posted by Mr Shore <sh...@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 <ra...@gmail.com>:
>
>
> On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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
>
>
>
>
Re: how do add a new filed and sort on this field
Posted by All day coders <ra...@gmail.com>.
On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <sh...@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