lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-12947) SolrJ Helper for JSON Request API
Date Thu, 01 Nov 2018 14:53:00 GMT

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

Jan Høydahl commented on SOLR-12947:
------------------------------------

Yea, we need something like this. I like the fact that we can construct the JsonQuery from
a JSON string as well as with objects. This could be the first step. It would be great if
SolrJ also got support for various Builders for constructing more complex Lucene queries.
Some inspiration can be drawn from the new ES clients which can build all kinds of Boolean,
Term, Range etc Queries and provide builders for setting all the various properties that each
support.

> SolrJ Helper for JSON Request API
> ---------------------------------
>
>                 Key: SOLR-12947
>                 URL: https://issues.apache.org/jira/browse/SOLR-12947
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java, SolrJ
>    Affects Versions: 7.5
>            Reporter: Jason Gerlowski
>            Assignee: Jason Gerlowski
>            Priority: Minor
>         Attachments: SOLR-12947.patch
>
>
> The JSON request API is becoming increasingly popular for sending querying or accessing
the JSON faceting functionality. The query DSL is simple and easy to understand, but crafting
requests programmatically is tough in SolrJ. Currently, SolrJ users must hardcode in the JSON
body they want their request to convey.  Nothing helps them build the JSON request they're
going for, making use of these APIs manual and painful.
> We should see what we can do to alleviate this.  I'd like to tackle this work in two
pieces.  This (the first piece) would introduces classes that make it easier to craft non-faceting
requests that use the JSON Request API.  Improving JSON Faceting support is a bit more involved
(it likely requires improvements to the Response as well as the Request objects), so I'll
aim to tackle that in a separate JIRA to keep things moving.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message