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

Michael McCandless commented on LUCENE-4906:
--------------------------------------------

I think the challenge here is that these are not just "advanced" uses;
they are super expert uses, and I don't feel like that justifies the
added cost of generics for normal users.

There are definitely times when generics make sense but I don't think
this case applies ...

I agree the Object approach is rather old fashioned ... but it should
still work for these super expert cases.  So, it's not ideal, but it's
a step forward at least (progress not perfection) ... I'd like to
commit the Object approach so we move forward.

If future use cases emerge that makes the generics use-case more
common we can always re-visit this (this API is experimental; we are
free to change it), so none of this is set in stone ...

                
> PostingsHighlighter's PassageFormatter should allow for rendering to 
> arbitrary objects
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4906
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4906
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>         Attachments: LUCENE-4906.patch, LUCENE-4906.patch
>
>
> For example, in a server, I may want to render the highlight result to 
> JsonObject to send back to the front-end. Today since we render to string, I 
> have to render to JSON string and then re-parse to JsonObject, which is 
> inefficient...
> Or, if (Rob's idea:) we make a query that's like MoreLikeThis but it pulls 
> terms from snippets instead, so you get proximity-influenced salient/expanded 
> terms, then perhaps that renders to just an array of tokens or fragments or 
> something from each snippet.

--
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