bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6 stars 0 forks source link

Test search and configure accordingly #303

Closed CraigClark closed 8 months ago

CraigClark commented 9 months ago

OP timer

https://openplus.monday.com/boards/4092908516/pulses/5793365757


Validate search functionality.

Search Indexing

Search functionality

Reference

[!NOTE] Reference Image

Image

Image

Attachment sourced from: https://heinonline.org/HeinDocs/AdvancedSearchSyntax.pdf

  • Users can enter a term (single or phrase as defined above) in the search box and results returned should be based on matches in the description field of the MR
  • Users can enter more than one term (single or phrase as defined above) in the search box with operators and results returned should be based on the description field of the MR
  • Users can specify the scope of a search by specifying a field name and a term (single or phrase as defined above) using syntax, e.g. title: "folio"
  • Users can specify the scope of a search by specifying more than one term (single or
  • phrase as defined above) using syntax, e.g. title: "folio" AND description: "full address" enter more than one term or phrase (as defined above) in the search box with operators and results returned should be based on the field(s) of the MR that were specified
NicoledeGreef commented 9 months ago

@NicoledeGreef to check all the ways searches are done and log any issues/items in this ticket

CraigClark commented 8 months ago
CraigClark commented 8 months ago

for fields, there is no operator, however people can use the facets to narrow results by field. @NicoledeGreef , with that in mind, I would like to pass this one based on the facets functionality.

CraigClark commented 8 months ago

Search is now indexing on cron.

There is an issue that causes indexing on revision save to fail.

We disabled index on save. Instead the site will be indexed every 5 minutes on cron run.

NicoledeGreef commented 8 months ago

for fields, there is no operator, however people can use the facets to narrow results by field. @NicoledeGreef , with that in mind, I would like to pass this one based on the facets functionality.

There's no question there is value in facets but enabling field based searching on title and description in particular is important. There are no facets for these as they are not discrete values like OPR, Series, Modified date, Source system, Metadata type, etc.

It would be advantageous to enable searching such as:

title:"leads" {OPERATOR} description:"refund"

NicoledeGreef commented 8 months ago

Questions: How do we specify a multi-word phrase as a search term that returns only hits with all the words in that order? Google uses double-quotes for example.

CraigClark commented 8 months ago

@NicoledeGreef title is fixed. We boosted title in search results.

@lkmorlan please merge https://github.com/bcgov/MFIN-Data-Catalogue/tree/303-boost-title

CraigClark commented 8 months ago

for fields, there is no operator, however people can use the facets to narrow results by field. @NicoledeGreef , with that in mind, I would like to pass this one based on the facets functionality.

There's no question there is value in facets but enabling field based searching on title and description in particular is important. There are no facets for these as they are not discrete values like OPR, Series, Modified date, Source system, Metadata type, etc.

It would be advantageous to enable searching such as:

title:"leads" {OPERATOR} description:"refund"

@NicoledeGreef I talked with Joel about this today. Search API doesn't do this. We wound need to write a custom module that would allow this type of query.

Typically what we do for the use case you mentioned is develop an advanced view that people with a certain role can access. This would have many more filters than what is available in search. We can export results to csv or JSON.

NicoledeGreef commented 8 months ago

Let's hold off on custom development for now. We just need to ensure that Solr/Search API is configured optimally. and that we document the options for advanced users.

NicoledeGreef commented 8 months ago

Title is boosted to 21 body (description) is boosted to 1

NicoledeGreef commented 8 months ago

verified in dv14