gbif / portal-feedback

User feedback for the GBIF API, website and published data. You can ask questions here. 🗨❓
30 stars 16 forks source link

additional filters for literature #2481

Closed gbif-portal closed 4 years ago

gbif-portal commented 4 years ago

additional filters for literature

Could we add filters (faceted) for fields

source (translation: "Journal") publisher (translation: "Journal publisher)

Thanks!


Github user: @dnoesgaard User: See in registry System: Chrome 80.0.3987 / Mac OS X 10.15.3 Referer: https://www.gbif.org/resource/search?contentType=literature&literatureType=journal&relevance=GBIF_USED&peerReview=true Window size: width 2560 - height 1226 API log&_a=(columns:!(_source),index:'prod-varnish-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E499')),sort:!('@timestamp',desc))) Site log&_a=(columns:!(_source),index:'prod-portal-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E499')),sort:!('@timestamp',desc))) System health at time of feedback: OPERATIONAL

MortenHofft commented 4 years ago

If it is for internal use this is already available in the es index: http://cms-search.gbif.org:9200/_search?q=contentType:literature%20AND%20publisher:Wiley

MortenHofft commented 4 years ago

We generally do not add facets for things that are free text fields, but I have now done so. It might be worth cleaning them up if you have the option to do so. Below is an excerpt of the facets including actual casing and spelling mistakes:

There is no suggest endpoint, so search is free text and hoping for the best. If you believe it is important to have suggest, then we need a new endpoint or change the ES index to support autocomplete on those fields.

dnoesgaard commented 4 years ago

Hey, thanks for this.

However, I think you might have used the wrong field: sourceType

Should have been source

MortenHofft commented 4 years ago

Oh, I couldn't see source in the data, so i figured it was sourcetype. I must have misspelled in my search. Thanks