lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Krupansky <jack.krupan...@gmail.com>
Subject Re: Position increment in WordDelimiterFilter.
Date Thu, 14 Jan 2016 16:14:37 GMT
Which release of Solr are you using? Last year (or so) there was a Lucene
change that had the effect of keeping all terms for WDF at the same
position. There was also some discussion about whether this was either a
bug or a bug fix, but I don't recall any resolution.

-- Jack Krupansky

On Thu, Jan 14, 2016 at 4:15 AM, Modassar Ather <modather1981@gmail.com>
wrote:

> Hi,
>
> I have following definition for WordDelimiterFilter.
>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
> generateNumberParts="1" catenateWords="1" catenateNumbers="1"
> catenateAll="1" splitOnCaseChange="1" preserveOriginal="1"/>
>
> The analysis of 3d shows following four tokens and their positions.
>
> token         position
> 3d             1
> 3               1
> 3d             1
> d               2
>
> Please help me understand why d is at 2? Should not it also be at position
> 1.
> Is it a bug and if not is there any attribute which I can use to restrict
> the position increment?
>
> Thanks,
> Modassar
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message