mudrod
mudrod copied to clipboard
Default search fields and autocomplete fields
-
default search fields https://github.com/mudrod/mudrod/blob/master/core/src/main/java/gov/nasa/jpl/mudrod/ssearch/Dispatcher.java#L95
-
default autocomplete field https://github.com/mudrod/mudrod/blob/master/core/src/main/java/gov/nasa/jpl/mudrod/driver/ESDriver.java#L389 https://github.com/mudrod/mudrod/blob/master/core/src/main/resources/elastic_mappings.json#L63
@lewismc Could you please take a look at the autocomplete part. The autocompletion function changes when Elasticaserth is upgraded from 2.3 to 5.0. Yongyao and I have spent many time modifying the autocomplete function to use the latest API but the autocompletion results are bad sometimes.
Thank you @quintinali I'll take a look
Please see PR at # the files I've added to both autocompletion and dataset disparcher search are as follows
- Dataset-EllipsoidType
- Dataset-ShortName-Full
- Dataset-LongName-Full
- Dataset-ProviderDatasetName
- Dataset-Doi
- Dataset-TemporalResolution-Group
- Dataset-PersistentId
- DatasetCitation-SeriesName
- DatasetCitation-Title
- DatasetParameter-Term-Full
- DatasetParameter-Variable-Full
- DatasetProject-Project-LongName
- DatasetProject-Project-LongName-Full
- DatasetProject-Project-ShortName
- DatasetProject-Project-ShortName-Full
- Collection-LongName
- Collection-LongName-Full
- Collection-ShortName
- Collection-ShortName-Full
I've added the following to ONLY dataset disparcher search
- Dataset-Description
- DatasetSource-Source-Description
- DatasetSource-Sensor-Description
Also address the following under this issue https://github.com/mudrod/mudrod/blob/master/core/src/main/java/gov/nasa/jpl/mudrod/metadata/pre/ApiHarvester.java#L74-L76 Rip out the String mapping, make it a JSON file and read it from the classpath.
Mapping of raw metadata is configured using dynamic mapping template. https://github.com/mudrod/mudrod/blob/master/core/src/main/java/gov/nasa/jpl/mudrod/metadata/pre/ApiHarvester.java#L74