You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kamaldeep Singh (JIRA)" <ji...@apache.org> on 2016/02/14 17:12:18 UTC

[jira] [Comment Edited] (LUCENE-7026) AnalyzingInfixSuggester doesn't support Phrase Queries for contexts

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

Kamaldeep Singh edited comment on LUCENE-7026 at 2/14/16 4:11 PM:
------------------------------------------------------------------

[~mikemccand] thanks for your reply. It seems we are seeing the fields being analyzed. I think we do specify the analyzer while doc creation - https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThread.java#L220. 

I did check the index with luke as well and can't view it the fields as string . 


was (Author: kamal_ebay):
[~mikemccand] thanks for your reply. It seems we are seeing the fields being analyzed. I think we do specify the analyzer writer doc creation - https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThread.java#L220. 

I did check the index with luke as well and can't view it the fields as string . 

> AnalyzingInfixSuggester doesn't support Phrase Queries for contexts
> -------------------------------------------------------------------
>
>                 Key: LUCENE-7026
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7026
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 5.3.1
>            Reporter: Kamaldeep Singh
>
> AnalyzingInfixSuggester uses Term Queries for filtering out the contexts. If the StandardAnalyzer is used while indexing , since all the contexts are stored as StringField and analyzed , spaces in them  are removed and words converted to tokens. So contexts having spaces in their terms can't be queried , And we also can't pass a PhraseQuery as a BooleanQuery to lookup() since Phrase Queries won't work on string fields where positions of tokens are not stored. 
> Option left is to use a different analyzer while indexing 
> Analyzing Infix Suggester should store contexts as TextField instead of StringField so they can be queried. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org