-
I'd like to do indexed item search on Catalog Items other than Cesium3DTilesCatalogItem. Had a crack at integrating the SearchableItemMixin with a MapboxVectorTileCatalogItem, but not having much luck. Has anyone integrated the SearchableItemMixin into other item types? Looking at some examples will probably help. I've been trying to find examples of the feature running on one of the many TerriaMap instances (NSW, VIC, NationalMap etc), but I haven't been able to find any. In the documentation it says there are future plans to do a GeoJSON search provider - has any progress has been made on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @aclel There's one example here in DTV (had to tweak some config to get that working). You can open the search dialog from the expand menu here: This particular dataset only indexes numeric fields. We have an opensource indexer for 3d-tiles and kml+gltf files. You can have a look at how that's implemented. Unfortunately we haven't implemented indexing for any other data types yet. There is some notes on the design of the index. It is basically a bunch of CSVs:
We would happily welcome any contributions if you intend to develop something opensource. For standalone data types like GeoJSON, since the whole data is available in memory, we could probably implement a new ItemSearchProvider type that does brute force search instead of indexing data ahead-of-time. WFS would be another ItemSearchProvider that would call the remote API instead. |
Beta Was this translation helpful? Give feedback.
Hi @aclel
There's one example here in DTV (had to tweak some config to get that working).
You can open the search dialog from the expand menu here:
This particular dataset only indexes numeric fields.
We have an opensource indexer for 3d-tiles and kml+gltf files. You can have a look at how that's implemented. Unfortunately we haven't implemented indexing for any other data types yet. There is some notes on the design of the index. It is basically a bunch of CSVs:
1 csv each for searchable properties - maps the id to prop value
and an indexRoot - json file describing the index structure
We would happily welcome an…