Show
Ignore:
Timestamp:
08.07.2019 18:48:32 (4 months ago)
Author:
ak19
Message:

Minor. Changes to comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/doc.pm

    r33312 r33313  
    11661166    elsif($field eq "GPS.mapOverlay") { # then the $value is a JSON string 
    11671167 
    1168         # In order to allow searching map data enriched documents by map shape descriptions, 
     1168        # In order to allow searching map-data-enriched documents by map shape descriptions, 
    11691169        # and to run rawquery searches for other docs by proximity based on their map data, 
    11701170        # need to store the shape descriptions and Coordinate info for shapes into the text index. 
     
    11721172        # And we add Coordinate (CD) and CoordShort (CS) info for each shape in the mapoverlay in the format (Lat, Lng) as ("37S339 175E342") 
    11731173        # where the digits before the N/S/E/W direction represents the whole number. And the digits after the direction are the 
    1174         # decimal places which can range from 0 and 2-4 digits. 
     1174        # decimal places which can vary between 0 and 2 to 4 digits. 
    11751175         
    1176         # However, we only want to process GPS.mapOverlay only during buildcol and only in the text indexing passes (e.g. sidx and didx for lucene) 
    1177         # and certainly never during the infodb pass of buildcol. The latter can end up duplicating Coordinate/CoordShort/GPSMapOverlayLabel for 
    1178         # when rebuilding with the online doc editor as that runs incremental-rebuild which then calls basebuilder::reconstruct_doc_objs_metadata() 
     1176        # However, we only want to process GPS.mapOverlay during buildcol and only in the text indexing passes (e.g. sidx and didx for lucene) 
     1177        # and certainly never during the infodb pass of buildcol. The latter can end up duplicating Coordinate/CoordShort/GPSMapOverlayLabel 
     1178        # when rebuilding with the online doc editor, as that runs incremental-rebuild which then calls basebuilder::reconstruct_doc_objs_metadata() 
    11791179        # on all docs NOT being incrementally rebuilt. That call would get meta from the infodb and use it to reconstruct the doc objects of docs 
    1180         # NOT being incrementally built. If the Coord and Label meta were written to the infodb, they would then be loaded back in when the collection 
    1181         # is incrementally rebuilt for those docs that don't need incremental processing. Then this function would once again add the same meta into 
    1182         # the infodb, thus duplicating what goes into the infodb. Hence, don't do all the following if doc::processor_mode eq "infodb". 
     1180        # NOT being incrementally built. If the Coord and Label meta were written to the infodb, they would then be loaded back in memory when the 
     1181        # collection is incrementally rebuilt for those docs that don't need incremental processing. Then this function would once again add the 
     1182        # same meta into the infodb, thus duplicating what goes into the infodb. Hence, don't do all the following if doc::processor_mode =~ "infodb", 
     1183        # or anything other than a text mode. 
    11831184 
    11841185        # Note that for incremental rebuilding, the text pass can be called textreindex for instance (and infodb pass can be incinfodb).