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

Andrzej Bialecki  commented on SOLR-4619:
-----------------------------------------

Comments by John Berryman, copied from SOLR-1535:

{quote}
Ah, I see. This is a bit lower level than I was thinking. Still useful, but 
different. I was thinking about having PreAnalyzedField extend directly from 
TextField rather than from FieldType, and then be able to build up whatever 
analysis chain that you want in the usual TextField sense. Query analysis would 
proceed as with a normal TextField, but index analysis would smart detect 
whether this input was already parsed or not. If the input was not parsed, then 
it would go through the normal analysis. On the other hand, if the input was 
already parsed, then the token stream would go straight into the index (the 
assumption being that someone upstream understands what they're doing).

This way, in the SolrJ client you could build up some extra functionality so 
that the PreAnalyzedTextFields would be parsed client side and sent to Solr. In 
my current application, we have one Solr and N-indexers on different machines. 
The setup described here would take a big load off of Solr. The other benefit 
of this setup is that query analysis proceeds as it always does. I don't 
understand how someone would search over a PreAnalyzed field as it currently 
stands, without a bit of extra work/custom code on the client.

One pitfall to my idea is that you'd have to create a similar 
PreAnalyzedIntField, PreAnalyzedLocationField, PreAnalyzedDateField etc. I wish 
Java had mixins or multiple inheritance.
{quote}
                
> 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, 4.2.1
>
>         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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to