[
https://issues.apache.org/jira/browse/SOLR-10198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18124813#comment-18124813
]
ASF subversion and git services commented on SOLR-10198:
--------------------------------------------------------
Commit 9ed938a1f7a86fcd405408db2635e9d4ebbb1eb0 in solr's branch
refs/heads/branch_10x from Nick
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=9ed938a1f7a ]
SOLR-10198: EmbeddedSolrServer StreamingResponseCallback: to SolrJ-native
types. (#4965)
-- instead of Lucene types. Thus a user's callback implementation can be
standard whether it's using EmbeddedSolrServer or a normal SolrClient.
(cherry picked from commit e97c2a0884cbd68790fd7e7036fbb7800db27856)
> EmbeddedSolrServer embedded behavior different from HttpSolrClient
> ------------------------------------------------------------------
>
> Key: SOLR-10198
> URL: https://issues.apache.org/jira/browse/SOLR-10198
> Project: Solr
> Issue Type: Bug
> Components: SolrJ
> Affects Versions: 6.4.1
> Reporter: Bert Summers
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> When retrieving the value of a field the object type is different depending
> on the server type.
> If I have a schema which has <field name="id" type="int" indexed="true"
> stored="true" required="true" />
> If I do
> solrClient.queryAndStreamResponse("test", new SolrQuery("*:*"), new
> StreamingResponseCallback {
> @Override
> public void streamSolrDocument(final SolrDocument doc) {
> Object idField = doc.getFieldValue("id");
> }
> @Override
> public void streamDocListInfo(final long numFound, final long start,
> final Float maxScore) {
> System.out.println("Found " + numFound + " documents");
> }
> });
> in streamSolrDocument the Object type is Integer if the server is http but
> StoredField if embedded.
> Both the server and embedded use the same schema.xml and solrconfig.xml
> In version 5.1.0 both connections would return the same type (Integer)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]