RE: Term no longer matches if PositionLengthAttr is set to two

Markus Jelsma <[email protected]>
Newsgroups gmane.comp.jakarta.lucene.solr.user,gmane.text.xml.axis.user
Message-ID <[email protected]>
Ok, we decided not to implement PositionLengthAttribute for now due to, it either is a bad applied (how could one even misapply that attribute?) or Solr's QueryBuilder has a weird way of dealing with it or.. well.

Thanks, 
Markus
 
-----Original message-----
> From:Markus Jelsma <[email protected]>
> Sent: Monday 1st May 2017 12:33
> To: [email protected]; solr-user <[email protected]>
> Subject: RE: Term no longer matches if PositionLengthAttr is set to two
> 
> Hello again, apologies for cross-posting and having to get back to this unsolved problem.
> 
> Initially i thought this is a problem i have with, or in Lucene. Maybe not, so is this problem in Solr? Is here anyone who has seen this problem before?
> 
> Many thanks,
> Markus
> 
> -----Original message-----
> > From:Markus Jelsma <[email protected]>
> > Sent: Tuesday 25th April 2017 13:40
> > To: [email protected]
> > Subject: Term no longer matches if PositionLengthAttr is set to two
> > 
> > Hello,
> > 
> > We have a decompounder and recently implemented the PositionLengthAttribute in it and set it to 2 for a two-word compound such as drinkwater (drinking water in dutch). The decompounder runs both at index- and query-time on Solr 6.5.0.
> > 
> > The problem is, q=content_nl:drinkwater no longer returns documents containing drinkwater when posLenAtt = 2 at query time.
> > 
> > This is Solr's debug output for drinkwater with posLenAtt = 2:
> > 
> >     <str name="rawquerystring">content_nl:drinkwater</str>
> >     <str name="querystring">content_nl:drinkwater</str>
> >     <str name="parsedquery">SynonymQuery(Synonym())</str>
> >     <str name="parsedquery_toString">Synonym()</str>
> > 
> > This is the output where i reverted the decompounder, thus a posLenAtt = 1:
> > 
> >     <str name="rawquerystring">content_nl:drinkwater</str>
> >     <str name="querystring">content_nl:drinkwater</str>
> >     <str name="parsedquery">SynonymQuery(Synonym(content_nl:drink content_nl:drinkwater)) content_nl:water</str>
> >     <str name="parsedquery_toString">Synonym(content_nl:drink content_nl:drinkwater) content_nl:water</str>
> > 
> > The indexed terms still have posLenAtt = 2, but having a posLenAtt = 2 at query time seems to be a problem.
> > 
> > Any thoughts on this issue? Is it a bug? Do i not understand PositionLengthAttribute? Why does it affect term/document matching? At query time but not at index time?
> > 
> > Many thanks,
> > Markus
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.