[ 
https://issues.apache.org/jira/browse/SOLR-8089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270190#comment-16270190
 ] 

David Smiley edited comment on SOLR-8089 at 11/29/17 5:47 AM:
--------------------------------------------------------------

I think query time is not enough; wouldn't we need to adjust the index analysis 
to posInc=1 too?  Otherwise index data of "foo the bar" would not be found by 
the query "foo bar" (and we want it to if a user wants 
enablePositionIncrements=false)
EDIT: DUH; just like your last comment says!  I need to go to bed :-)

disclaimer: I didn't look at the patch

p.s. recent discussion here: 
https://issues.apache.org/jira/browse/LUCENE-8036?focusedCommentId=16270188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16270188


was (Author: dsmiley):
I think query time is not enough; wouldn't we need to adjust the index analysis 
to posInc=1 too?  Otherwise index data of "foo the bar" would not be found by 
the query "foo bar" (and we want it to if a user wants 
enablePositionIncrements=false)

disclaimer: I didn't look at the patch

p.s. recent discussion here: 
https://issues.apache.org/jira/browse/LUCENE-8036?focusedCommentId=16270188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16270188

> Support query parsers being able to set enablePositionIncrements
> ----------------------------------------------------------------
>
>                 Key: SOLR-8089
>                 URL: https://issues.apache.org/jira/browse/SOLR-8089
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Varun Thacker
>         Attachments: SOLR-8089.patch
>
>
> In 5.0 LUCENE-4963 disallowed setting enablePositionIncrements=false on any 
> token filter. The idea being no filter should change the token stream in a 
> way that could mess up preceding or following analysis components
> So if a user wants to be able to have PhraseQueries that match across 
> stopwords they cannot unless the parser is configured to not take position 
> increments into account when generating phrase queries .
> This is documented in the "Token Position Increments" section here : 
> https://lucene.apache.org/core/5_3_0/core/org/apache/lucene/analysis/package-summary.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to