thomaswoeckinger commented on PR #5194: URL: https://github.com/apache/solr/pull/5194#issuecomment-6436928741
> @thomaswoeckinger I'd like your input on this please, as you filed [SOLR-13795](https://issues.apache.org/jira/browse/SOLR-13795) This may exist before but the code change make me think of it, added a small reproducer for solr cloud mode: @Test public void testFacetOnAddedFieldBeforeCommit() throws Exception { String collection = "review_facet"; CloudSolrClient client = cluster.getSolrClient(); CollectionAdminRequest.createCollection(collection, "conf1", 1, 2).process(client); cluster.waitForActiveCollection(collection, 1, 2); client.add(collection, sdoc("id", "1")); client.commit(collection); addStringField("review_field", collection, client); // The Schema API has returned, including its schema-version agreement check. assertEveryReplicaLatestSchema(collection, s -> s.getFieldOrNull("review_field") != null); // No commit after adding the field: faceting must recognize it even without indexed values. SolrQuery query = new SolrQuery("*:*"); query.addFacetField("review_field"); assertEquals(1, client.query(collection, query).getResults().getNumFound()); } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
