Changeset 33313
- Timestamp:
- 2019-07-08T18:48:32+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/doc.pm
r33312 r33313 1166 1166 elsif($field eq "GPS.mapOverlay") { # then the $value is a JSON string 1167 1167 1168 # In order to allow searching map dataenriched documents by map shape descriptions,1168 # In order to allow searching map-data-enriched documents by map shape descriptions, 1169 1169 # and to run rawquery searches for other docs by proximity based on their map data, 1170 1170 # need to store the shape descriptions and Coordinate info for shapes into the text index. … … 1172 1172 # And we add Coordinate (CD) and CoordShort (CS) info for each shape in the mapoverlay in the format (Lat, Lng) as ("37S339 175E342") 1173 1173 # 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. 1175 1175 1176 # However, we only want to process GPS.mapOverlay onlyduring 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 for1178 # 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() 1179 1179 # 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. 1183 1184 1184 1185 # Note that for incremental rebuilding, the text pass can be called textreindex for instance (and infodb pass can be incinfodb).
Note:
See TracChangeset
for help on using the changeset viewer.