lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Solr highlighting is botching output
Date Tue, 11 Jan 2011 06:02:26 GMT
Replacing with EdgeNGramTokenizerFactory with

 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
 <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="114" />

combination should solve your problem. Preserving your search within
words.

Searching histo will return : African American <em>Histo</em>ry

--- On Tue, 1/11/11, Dan Loewenherz <dloewenherz@gmail.com> wrote:

> From: Dan Loewenherz <dloewenherz@gmail.com>
> Subject: Re: Solr highlighting is botching output
> To: solr-user@lucene.apache.org
> Date: Tuesday, January 11, 2011, 7:30 AM
> On Mon, Jan 10, 2011 at 9:19 PM,
> Ahmet Arslan <iorixxx@yahoo.com>
> wrote:
> 
> >
> > Not sure about your solr version but probably it can
> be
> > https://issues.apache.org/jira/browse/LUCENE-2266
> >
> > Is there a special reason for using
> EdgeNGramTokenizerFactory?
> > Replacing this tokenizer with WhiteSpaceTokenizer
> should solve this.
> >
> 
> I'm trying to implement autocomplete, so I need to be able
> to search within
> words. Maybe I was using it incorrectly, but the
> WhiteSpaceTokenizer would
> only index on whole words.
> 
> "econ" needs to match "economics", "econometrics", etc.
> 
> Or upgrade solr version.
> >
> 
> Oops, forgot to mention the version. I'm running Solr
> 1.4.1.
> 
> 
> > And I don't see <span> either in your search URL
> or solrconfig.xml, how
> > <span> is popping up in the response?
> >
> 
> My mistake. I was playing around with the pre/post
> parameters. Everything
> else is the same.
> 


      

Mime
View raw message