On Thu, 2005-10-13 at 11:58 +0200, Daniel Cortes wrote:
> Solved, only replace
> new Sort(new SortField("DATE",SortField.INT, true)));
Alternatively you could use the DateField class:
http://lucene.apache.org/java/docs/api/org/apache/lucene/document/DateField.html
to translate your date's into L
Solved, only replace
new Sort(new SortField("DATE",SortField.INT, true)));
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Excuse me I don't write the trace of error
java.lang.RuntimeException: no terms in field DATE - cannot determine
sort type
at
org.apache.lucene.search.FieldCacheImpl.getAuto(FieldCacheImpl.java:319)
at
org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedHitQueue
thks but It doesn't work, I tried this
Hits encontrados=searcher.search(buscar,new Sort("DATE"));
and all my documents have a Field.Keyword called DATE.
If i do the search without sort parameter it returns me a lot of
results, but if i do the search with sort parameter it doesn't return
any
Just use the Sort option in the searcher
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Searcher
.html#search(org.apache.lucene.search.Query,%20org.apache.lucene.search.
Sort)
Aviran
http://www.aviransplace.com
-Original Message-
From: Daniel Cortes [mailto:[EMAIL PROTECT