Re: Problem in Coding, to get the DOC ID from HITS

2008-02-23 Thread Erick Erickson
You have to set the Hits object to the results of a search. See Searcher.search() On Fri, Feb 22, 2008 at 4:32 PM, sumittyagi <[EMAIL PROTECTED]> wrote: > > here is my code > package db; > import java.io.*; > import java.util.*; > import java.lang.*; > import org.apache.lucene.search.Hits; > impo

RE: Problem in Coding, to get the DOC ID from HITS

2008-02-22 Thread Dharmalingam Ganesan
way, avoid asking such questions in this forum because the questions are not related to Lucene!! -Original Message- From: sumittyagi [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 4:32 PM To: java-user@lucene.apache.org Subject: Problem in Coding, to get the DOC ID from HITS

Problem in Coding, to get the DOC ID from HITS

2008-02-22 Thread sumittyagi
here is my code package db; import java.io.*; import java.util.*; import java.lang.*; import org.apache.lucene.search.Hits; import org.apache.lucene.search.Hit; public class comm{ public static void main(String[] args) { System.out.println("hi");