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

Walter Underwood commented on SOLR-5005:
----------------------------------------

Here is another use case. We currently do this in client code, but it would be 
nice to move it to Solr.

We run a query in "strict" mode, with mm=100%. If there are zero results, we 
run it in "loose" mode, with mm=1, and fuzzy matching.

> 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: SOLR-5005.patch, SOLR-5005.patch, SOLR-5005.patch, 
> SOLR-5005_ScriptRequestHandler_take3.patch, 
> SOLR-5005_ScriptRequestHandler_take3.patch, 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 was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to