Sir, I actually meant auto suggest as such available for google suggest similar to autocomplete. Where, users need not type the entire text and instead can go with the suggestions available. Thanks in advance, Dhivya
--- On Mon, 23/11/09, Anshum <[email protected]> wrote: From: Anshum <[email protected]> Subject: Re: How to find the fields that are indexed? To: [email protected] Date: Monday, 23 November, 2009, 10:35 AM By autosuggest, would you mean similar documents? In that case you could try the lucene 'morelikethis' class. -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw............ On Mon, Nov 23, 2009 at 3:42 PM, DHIVYA M <[email protected]>wrote: > That was a good solution to my problem and i found my fields for the > document. > Acutally i was trying it to find out how to implement autosuggest with > lucene. > Can you suggest me an idea of how to use autosuggest wih lucene. > > Thanks in advance, > Dhivya > > --- On Mon, 23/11/09, Ian Lea <[email protected]> wrote: > > > From: Ian Lea <[email protected]> > Subject: Re: How to find the fields that are indexed? > To: [email protected] > Date: Monday, 23 November, 2009, 10:08 AM > > > Lucene will index and store the fields that you tell it to when a > document is written to the index. > > In lucene 2.4 doc.getFields() returns a List of all the fields in a > document and probably in 2.3.2 as well. See the javadoc. That will > tell you the fields that have been stored but I think not necessarily > those that have been indexed i.e. made searchable. > > Luke can tell you pretty much everything about an index. > > > -- > Ian. > > > On Mon, Nov 23, 2009 at 9:42 AM, DHIVYA M <[email protected]> > wrote: > > Sir, > > > > Am using lucene 2.3.2. I would like to know what are the fields that are > been indexed? > > > > Ex: > > > > doc.get("path"); > > > > this statement returns the path of the document > > > > like "path" what are the other fields of the document used by lucene > > > > I went through converting all the class files to java files and read all > the files. But i got confused with the things available in cluster. > > > > So, Can anyone tell me how to find it out? > > > > > > Thanks in advance, > > Dhivya > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. > http://in.yahoo.com/ > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
