lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Summers (JIRA)" <>
Subject [jira] [Created] (SOLR-10198) EmbeddedSolrServer embedded behavior different from HttpSolrClient
Date Thu, 23 Feb 2017 20:20:44 GMT
Bert Summers created SOLR-10198:

             Summary: EmbeddedSolrServer embedded behavior different from HttpSolrClient
                 Key: SOLR-10198
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrJ
    Affects Versions: 6.4.1
            Reporter: Bert Summers

When retrieving the value of a field the object type is different depending on the server

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

        public void streamSolrDocument(final SolrDocument doc) {
            Object idField = doc.getFieldValue("id");

        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

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message