lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-5005) JavaScriptRequestHandler
Date Tue, 09 Jul 2013 13:55:51 GMT

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

Noble Paul edited comment on SOLR-5005 at 7/9/13 1:55 PM:
----------------------------------------------------------

sample script

{code}
var requestParameterQuery = param('query'); //or p('query') as a short form
var results = q({'qt': '/select','q':requestParameterQuery}); // or inline this as q({'qt':
'/select','q':p('query')})
rsp.add('myfirstscriptresults', results.get('results'));// r is the SolrQueryResponse object
// you may run more queries .  
{code}
                
      was (Author: noble.paul):
    sample script

{code}
var requestParameterQuery = param('query'); //or p('query') as a short form
var results = q({'qt': '/select','q':requestParameterQuery}); // or inline this as q({'qt':
'/select','q':p('query')})
r.add('myfirstscriptresults', results.get('results'));// r is the SolrQueryResponse object
// you may run more queries .  
{code}
                  
> JavaScriptRequestHandler
> ------------------------
>
>                 Key: SOLR-5005
>                 URL: https://issues.apache.org/jira/browse/SOLR-5005
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: David Smiley
>            Assignee: Noble Paul
>         Attachments: patch, SOLR-5005.patch, SOLR-5005.patch
>
>
> A user customizable script based request handler would be very useful.  It's inspired
from the ScriptUpdateRequestProcessor, but on the search end. A user could write a script
that submits searches to Solr (in-VM) and can react to the results of one search before making
another that is formulated dynamically.  And it can assemble the response data, potentially
reducing both the latency and data that would move over the wire if this feature didn't exist.
 It could also be used to easily add a user-specifiable search API at the Solr server with
request parameters governed by what the user wants to advertise -- especially useful within
enterprises.  And, it could be used to enforce security requirements on allowable parameter
valuables to Solr, so a javascript based Solr client could be allowed to talk to only a script
based request handler which enforces the rules.

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message