Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 8343 invoked from network); 23 Sep 2004 14:16:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Sep 2004 14:16:06 -0000 Received: (qmail 22376 invoked by uid 500); 23 Sep 2004 14:15:56 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 22344 invoked by uid 500); 23 Sep 2004 14:15:55 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 22331 invoked by uid 99); 23 Sep 2004 14:15:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [200.61.168.200] (HELO gandalf.xlnet.net.ar) (200.61.168.200) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Sep 2004 07:15:54 -0700 Received: from exchange.xlnet.net.ar (10.0.0.3) by gandalf.xlnet.net.ar (NPlex 5.1.036) id 41506AA800009E11 for lucene-user@jakarta.apache.org; Thu, 23 Sep 2004 11:19:04 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: MultiSearcher + Sort Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Thu, 23 Sep 2004 11:19:04 -0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: MultiSearcher + Sort Thread-Index: AcShWM/Yum2uaQCAR8+aXRvW6uwLMwAH5VNg From: "Wermus Fernando" To: "Lucene Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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]=20 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 =3D 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 =3D SearchCreateArrayDataFiles.createArray1 Centralized Boolean Factor =3Dfalse 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.(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.(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