Re: how do add a new filed and sort on this field

2008-06-24 Thread Mr Shore
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 <[EMAIL PROTECTED]>: > What's the difference between cygwin and vmware? > I'm running well in vmware linux but failed the j

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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 <[EMAIL PROTECTED]>: > by the way > I found date sortable by the code in MoreIndexingFilter.java @line 122 > doc.add(new Field("date", dateString, Field.Store.NO,

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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 ? "" :

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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

Re: how do add a new filed and sort on this field

2008-06-23 Thread All day coders
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 <[EMAIL PROTECTED]> wrote: > I still have a doubt > will the following statement store a duplicate value of dateString? > > new Field("date", dateString, Field.Sto

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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 <[EMAIL PROTECTED]>: > It seems I've fixed the problem simply by change one line in > MoreIndexingFilter.java @122

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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 20

Re: how do add a new filed and sort on this field

2008-06-23 Thread Mr Shore
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 <[EMAIL PROTECTED]>: > 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 modif

Re: how do add a new filed and sort on this field

2008-06-22 Thread Mr Shore
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 <[EMAIL PRO

Re: how do add a new filed and sort on this field

2008-06-20 Thread All day coders
On Thu, Jun 19, 2008 at 3:08 AM, Mr Shore <[EMAIL PROTECTED]> 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 l

how do add a new filed and sort on this field

2008-06-19 Thread Mr Shore
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