Re: hit highlighting in lucene

2010-02-07 Thread Rohit Banga
it works!!! :) could you also offer a suggestion for the following? please have a look at the code above. it contains a list of cities that have been added to the index. // this is the code for indexing void indexCities() throws Exception { IndexWriter writer = new IndexWriter(FSDir

Re: hit highlighting in lucene

2010-02-07 Thread Simon Willnauer
try Query tq = new FuzzyQuery(new Term("name","mumbai")); instead of TermQuery tq = new TermQuery(new Term("name","mumbai")); simon On Sun, Feb 7, 2010 at 11:58 AM, Rohit Banga wrote: > >     // list of cities that has been indexed >     // each city name is a document >     public s

Re: hit highlighting in lucene

2010-02-07 Thread Rohit Banga
// list of cities that has been indexed // each city name is a document public static final String[] names = {"New Delhi", "Bangalore", "Hyderabad", "Mumbai", "Chennai", "Kolkata", "Ahmedabad", "Kanpur",

Re: hit highlighting in lucene

2010-02-07 Thread Simon Willnauer
Rohit, what kind of problems are you facing with using fuzzy query and highlighting. could you give us more details and maybe a small code snipped which isolates you problem? simon On Sun, Feb 7, 2010 at 11:32 AM, Rohit Banga wrote: > but what about the case in which i am using fuzzy query match

RE: hit highlighting in lucene

2010-02-07 Thread Uwe Schindler
ubject: Re: hit highlighting in lucene > > but what about the case in which i am using fuzzy query matching. then > the > highlighter package does not work. > > On Sat, Feb 6, 2010 at 8:12 PM, Uwe Schindler wrote: > > > There are two contrib packages for highlighting in

Re: hit highlighting in lucene

2010-02-07 Thread Rohit Banga
but what about the case in which i am using fuzzy query matching. then the highlighter package does not work. On Sat, Feb 6, 2010 at 8:12 PM, Uwe Schindler wrote: > There are two contrib packages for highlighting in the lucene distribution: > highlighter and fast-vector-highlighter > > - > U

RE: hit highlighting in lucene

2010-02-06 Thread Uwe Schindler
There are two contrib packages for highlighting in the lucene distribution: highlighter and fast-vector-highlighter - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Rohit Banga [mailto:iamrohitba...@gmai

Re: hit highlighting in lucene ?

2009-05-22 Thread Robert Muir
hat when a query is in English you only want > > to > > > query English lang docs, and vica versa. > > > You would also have to mark up your documents with a language > identifier > > > (i.e. 0=English, 1=Other Languages) so that when you query you

Re: hit highlighting in lucene ?

2009-05-21 Thread KK
her Languages) so that when you query you have a > > conditional on the language. > > > > > > > > I've not had to deal with multi-language documents though - so I'm sure > > others will be better placed to offer their experience. > > > > > >

Re: hit highlighting in lucene ?

2009-05-21 Thread Robert Muir
deal with multi-language documents though - so I'm sure > others will be better placed to offer their experience. > > > > -Original Message- > From: KK > Reply-To: java-user@lucene.apache.org > To: java-user@lucene.apache.org > Subject: Re: hit highlighting in lucene

Re: hit highlighting in lucene ?

2009-05-21 Thread Joel Halbert
27;m sure others will be better placed to offer their experience. -Original Message- From: KK Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: hit highlighting in lucene ? Date: Thu, 21 May 2009 18:31:44 +0530 Initially I was using standardA

Re: hit highlighting in lucene ?

2009-05-21 Thread KK
Initially I was using standardAnalyzer but I switched to simpleAnalyzer which I guess doesnot do more that tokenizing[and may be tokenizing] and I think this does not do stemming which I dont/cant do because I've no stemmer for the languages I'm indexing. For indexing and querring I'm using the sam

Re: hit highlighting in lucene ?

2009-05-21 Thread Joel Halbert
The highlighter should be language independent. So long as you are consistent with your use of Analyzer between indexing/query/highlighting. As for the most appropriate Analyzer to use for your local language, this is a seperate question - especially if you are using stop word and stemming filters