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

David Smiley commented on SOLR-4619:
------------------------------------

I guess we see this very differently.  I'm not arguing for any "switching on 
the fly" of anything, even if incidentally what I describe makes that possible. 
 Your design couples the ability to pre-analyze with the choice of field type, 
and I think that coupling need not exist.  It's already creating problems like 
this very issue (SOLR-4619).  Query analysis wouldn't need any improving, it 
shouldn't have anything to do with wether the field data was analyzed for 
indexing before it got to Solr or not.

bq.  this would complicate the processing of all field types

Sure, but it's not much.  I've already been poring over DocumentBuilder (as 
part of SOLR-4329) and I think I know what's involved.  It needs to examine the 
field value: if it's "Field" then it gets added right to the document.  A Solr 
UpdateRequestProcessor could convert the external serialization of the token 
stream from JSON/Avro/whatever to Field.
                
> Improve PreAnalyzedField query analysis
> ---------------------------------------
>
>                 Key: SOLR-4619
>                 URL: https://issues.apache.org/jira/browse/SOLR-4619
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 4.0, 4.1, 4.2, 5.0, 4.2.1
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 5.0
>
>         Attachments: SOLR-4619.patch
>
>
> PreAnalyzed field extends plain FieldType and mistakenly uses the 
> DefaultAnalyzer as query analyzer, and doesn't allow for customization via 
> <analyzer> schema elements.
> Instead it should extend TextField and support all query analysis supported 
> by that type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to