lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: solr.PatternReplaceFilterFactory AND endoffset
Date Thu, 27 Oct 2011 12:27:00 GMT
What does your admin/analysis page show? And how about the
results with &debugQuery=on?

Best
Erick

On Wed, Oct 26, 2011 at 5:34 AM, roySolr <royrutten1989@gmail.com> wrote:
> Hi,
>
> I have some problems with the patternreplaceFilter. I can't use the
> worddelimiter because i only want to replace some special chars given by
> myself.
>
> Some example:
>
> Tottemham-hotspur (london)
> Arsenal (london)
>
> I want this:
> replace "-" with " "
> "(" OR ")" with "".
>
> In the analytics i see this:
>
> position        1
> term text       tottemham hotspur london
> startOffset     0
> endOffset       26
>
> So the replacefilter works. Now i want to search "tottemham hotspur london".
> This gives no results.
>
> position        1
> term text       tottemham hotspur london
> startOffset     0
> endOffset       24
>
> It works when i search for "tottemham-hotspur (london)".
> I think the problem is the difference in offset(24 vs 26). I need some
> help...
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/solr-PatternReplaceFilterFactory-AND-endoffset-tp3454049p3454049.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
View raw message