File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ public function indexGraphNode(Node $dataNode): void
204204 $ occupiedDimensionSpacePoints = $ this ->collectOccupiedDimensionSpacePointsForFulltextRoot ($ dataNode , $ occupiedDimensionSpacePoints );
205205 }
206206
207- $ mappingType = $ this ->getIndex ()->findType ($ this -> nodeTypeMappingBuilder -> convertNodeTypeNameToMappingName ( $ dataNode ->getNodeType ()));
207+ $ mappingType = $ this ->getIndex ()->findType ($ dataNode ->getNodeType ()-> getName ( ));
208208 foreach ($ occupiedDimensionSpacePoints as $ occupiedDimensionSpacePoint ) {
209209 $ matchingSubgraph = $ this ->contentGraph ->getSubgraphByIdentifier (
210210 ContentStreamIdentifier::fromString ($ occupiedDimensionSpacePoint ->getCoordinate (new ContentDimensionIdentifier (LegacyConfigurationAndWorkspaceBasedContentDimensionSource::WORKSPACE_DIMENSION_IDENTIFIER ))),
@@ -360,7 +360,7 @@ public function flush(): void
360360 $ response = $ this ->requestDriver ->bulk ($ this ->getIndex (), $ content );
361361 foreach ($ response as $ responseLine ) {
362362 if (isset ($ response ['errors ' ]) && $ response ['errors ' ] !== false ) {
363- $ this ->logger ->error ('Indexing Error: Error during bulk request - ' . $ responseLine );
363+ $ this ->logger ->error ('Indexing Error: Error during bulk request - ' . json_encode ( $ responseLine) );
364364 }
365365 }
366366 }
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public function setIndex($index): void
212212 $ this ->handleLegacyOperation ();
213213 }
214214
215- public function getIndex (): int
215+ public function getIndex (): ? int
216216 {
217217 return $ this ->node ->getIndex ();
218218 }
@@ -513,4 +513,9 @@ public function equals(TraversableNodeInterface $other): bool
513513 {
514514 return $ this ->node ->equals ($ other );
515515 }
516+
517+ public function __toString (): string
518+ {
519+ return 'Node ' . $ this ->getContextPath () . '[ ' . $ this ->getNodeType ()->getName () . '] ' ;
520+ }
516521}
You can’t perform that action at this time.
0 commit comments