lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wermus Fernando" <fernando.wer...@xlnet.net.ar>
Subject RE: MultiSearcher + Sort
Date Thu, 23 Sep 2004 14:19:04 GMT
Karthik,
	I have a kind of similar problem. Test the following: when you
create a field, don't use Field(String), instead use Field(String, int)
where int is a constant for the field's type. May be this could help.


-----Mensaje original-----
De: Karthik N S [mailto:karthik@controlnet.co.in] 
Enviado el: Jueves, 23 de Septiembre de 2004 06:42 a.m.
Para: LUCENE
Asunto: MultiSearcher + Sort



Guys


Apologies........


Am I doing Wrong or is ther a bug with Lucene on Linux  O/s  When using
'
MultiSearcher with Sort '

Please Somebody Reply me ASAP

Tested both Lucene-1.4-final.jar,Lucene-1.4.1.jar

hits = multiSearcher.search(query,sortField);


Exception raised  on Linux O/s Only  [ On Windows it Works Perfectly ]


Query String  : (contents:gifts contents:articles) (path:gifts
path:articles) (modified:gifts modified:articles) (filename:gifts
filename:articles) (bookid:gifts bookid:articles) (creation:gifts
creation:articles) (chapNme:gifts chapNme:articles) (itmName:gifts
itmName:articles) (urltext:gifts urltext:articles) (itemCode:gifts
itemCode:articles) (itemPrice:gifts itemPrice:articles) (pageid:gifts
pageid:articles)

--------------- EXCEPTION START-----------------
The Exception Raised file = SearchCreateArrayDataFiles.createArray1
Centralized Boolean Factor =false
      SYSTEM IS STOPPING COMPILATION
-------------- EXCEPTION END-----------------

<-----------------------------------------------------------------------
----
-------------------------------------------->
java.lang.RuntimeException: no terms in field bookid - cannot determine
sort
type
        at
org.apache.lucene.search.FieldCacheImpl.getAuto(FieldCacheImpl.java:319)
        at
org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedH
itQu
eue.java:326)
        at
org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSo
rted
HitQueue.java:167)
        at
org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.
java
:58)
        at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:118)
        at
org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:141)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
        at org.apache.lucene.search.Hits.<init>(Hits.java:51)
        at org.apache.lucene.search.Searcher.search(Searcher.java:41)

<-----------------------------------------------------------------------
----
--------------------------------------------->


/*    at
com.controlnet.indexing.search.SearchCreateArrayDataFiles.createArray1(S
earc
hCreateArrayDataFiles.java:263)
  *    at
com.controlnet.indexing.search.SearchCreateArrayDataFiles.main(SearchCre
ateA
rrayDataFiles.java:308)
  */




      WITH WARM REGARDS
      HAVE A NICE DAY
      [ N.S.KARTHIK]




---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message