Skip to content

Commit

Permalink
map should not be static!
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed Apr 12, 2023
1 parent 3044925 commit caf7fdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ShardDocumentIndexer {

private final static Splitter facetPathSplitter = Splitter.on(ZuliaFieldConstants.FACET_PATH_DELIMITER).omitEmptyStrings();

private final static Map<String, Integer> dimToOrdinal = new ConcurrentHashMap<>();
private final Map<String, Integer> dimToOrdinal = new ConcurrentHashMap<>();

private final ServerIndexConfig indexConfig;
private final int majorVersion;
Expand Down Expand Up @@ -119,7 +119,7 @@ private void addUserFields(org.bson.Document mongoDocument, Document luceneDocum
addFacets(luceneDocument, taxoWriter, facetFieldToFacetLabels);
}

private static void addFacets(Document luceneDocument, DirectoryTaxonomyWriter taxoWriter, Map<String, Set<FacetLabel>> facetFieldToFacetLabels)
private void addFacets(Document luceneDocument, DirectoryTaxonomyWriter taxoWriter, Map<String, Set<FacetLabel>> facetFieldToFacetLabels)
throws IOException {

IntObjMap<IntSet> facetDimToOrdinal = HashIntObjMaps.newMutableMap();
Expand Down

0 comments on commit caf7fdd

Please sign in to comment.