mudrod icon indicating copy to clipboard operation
mudrod copied to clipboard

Default search fields and autocomplete fields

Open quintinali opened this issue 7 years ago • 4 comments

  1. default search fields https://github.com/mudrod/mudrod/blob/master/core/src/main/java/gov/nasa/jpl/mudrod/ssearch/Dispatcher.java#L95

  2. 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.

quintinali avatar May 31 '17 19:05 quintinali

Thank you @quintinali I'll take a look

lewismc avatar May 31 '17 19:05 lewismc

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

lewismc avatar Jun 07 '17 16:06 lewismc

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.

lewismc avatar Jun 07 '17 18:06 lewismc

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

quintinali avatar Jun 07 '17 18:06 quintinali