List Info

Thread: search results with sort




search results with sort
country flaguser name
United States
2007-09-10 06:14:31
Hi,

   I have this exception there are more terms than documents
in field
"Title", but it's impossible to sort on tokenized
fields.

   I'm try to sort the result by Title and the field title
is un_tokenized
and it has only one term such as document, 06, rational,
etc, and some other
fields have tokenized.

   The query that I build is something like that:
documentName:a or
documentDescription:a or contents:a etc, sort = new
Sort("Title"); then
searcHits = searcher.search(query,sort);

   I don't know why I get this error message, anyone can
help?

   Thank you.
  
-- 
View this message in context: http://www.nabble.com/search-results-with
-sort-tf4413911.html#a12590769
Sent from the Lucene - Java Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


Re: search results with sort
country flaguser name
United States
2007-09-13 20:52:14
Hi,

   Thanks.

   However, I tested with more terms in title field, for
instance, lucene
sort, abc_def, and that works.

   I deleted the old index file and re-index the whole
documents again, and
it works fine. So, I'm little bit confuse about how that
really work.

   Please advise.
-- 
View this message in context: http://www.nabble.com/search-results-with
-sort-tf4413911.html#a12667066
Sent from the Lucene - Java Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )