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
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
// 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",
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
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
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
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
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
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.
> >
> >
> >
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
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
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
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
13 matches
Mail list logo