lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Yuryev" <vyur...@rambler.ru>
Subject Re: HOWTO USE SORT on QUERY PARSER :(
Date Wed, 14 Jul 2004 06:37:47 GMT
example:
	query = QueryParser.parse(queryString, FIELD_CONTENTS, analyzer);
	Sort sort =new Sort();
	sort.setSort(FIELD_DATE,true);
	//hits = searcher.search(query,sort);
	hits = multiSearcher.search(query,sort);
...
FIELD_DATE - indexed field.

Regards,
Vladimir

On Wed, 14 Jul 2004 12:02:33 +0530
  "Karthik N S" <karthik@controlnet.co.in> wrote:
>Hey
>   Guys
>
>Apologies....
>
>   Before running the Build.xml for the  Junit Test files , Do I need 
>to
>Download all the Files present in  "Search folder"
>    from lucene CVS TEST in order to get the O/p Results
>
>With regards
>Karthik
>
>
>
>-----Original Message-----
>From: Vladimir Yuryev [mailto:vyuryev@rambler.ru]
>Sent: Wednesday, July 14, 2004 11:38 AM
>To: Lucene Users List
>Subject: Re: HOWTO USE SORT on QUERY PARSER :(
>
>
>It is config problem.
>Run build.xml --> [Run ANT...]--> Run unit tests.
>Vladimir.
>
>On Wed, 14 Jul 2004 11:27:25 +0530
>  "Karthik N S" <karthik@controlnet.co.in> wrote:
>>Hi
>>Guys
>>
>>Apologies
>>
>>I am using Eclipse 3.0 Ide , so when I run this file within the IDE,I
>>am not
>>able to VIEW the O/p Results.
>>[ Till now I have no Idea about how to setup and run the Junit
>>tests/View
>>results on  the O.ps ]
>>
>>Please give me some Tips on this .....
>>
>>With regards
>>Karthik
>>
>>-----Original Message-----
>>From: Vladimir Yuryev [mailto:vyuryev@rambler.ru]
>>Sent: Wednesday, July 14, 2004 11:12 AM
>>To: Lucene Users List
>>Subject: Re: HOWTO USE SORT on QUERY PARSER :(
>>
>>
>>Hi!
>>
>> From CVS -->
>>jakarta-lucene/src/test/org/apache/lucene/search/TestSort.java
>>Run it as  UnitTest  (   :-(   -->   :-)    )
>>
>>Best regards,
>>Vladimir.
>>
>>On Tue, 13 Jul 2004 15:31:18 +0530
>>  "Karthik N S" <karthik@controlnet.co.in> wrote:
>>>Hey
>>>
>>>  Guys
>>>
>>>Apologies....
>>>
>>>   Can somebody please explain to me with a simple SRC example of
>>> how to
>>>use SORT on Query parser [1.4 lucene]
>>>  [ I am confused with the code snippet on the CVS Test Case]
>>>
>>>
>>>
>>>with regards
>>>Karthik
>>>
>>>-----Original Message-----
>>>From: Grant Ingersoll [mailto:gsingers@syr.edu]
>>>Sent: Tuesday, July 13, 2004 2:29 AM
>>>To: lucene-user@jakarta.apache.org
>>>Subject: Re: Could search results give an idea of which field matched
>>>
>>>
>>>See the explain functionality in the Javadocs and previous threads.
>>> You can
>>>ask Lucene to explain why it got the results it did for a give hit.
>>>
>>>>>> saugustine@interwoven.com 07/12/04 04:52PM >>>
>>>I search the index on multiple fields. Could the search results also
>>>tell me which field matched so that the document was selected? From
>>>what
>>>I can tell, only the document number and a score are returned, is
>>>there
>>>a way to also find out what was the field(s) of the document matched
>>>the
>>>query?
>>>
>>>
>>>
>>>Sildy
>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>>>
>>
>>
>>---------------------------------------------------------------------
>>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
>>
>
>
>---------------------------------------------------------------------
>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
>


---------------------------------------------------------------------
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