-
Notifications
You must be signed in to change notification settings - Fork 28
Elastic Search appears to not be returning text in tags #315
Comments
Thanks for the issue. Can you give an example for tags that are showing in search? I believe that the tags are searchable, but @bjbhattGSA can clarify. |
As an example: POSTPROC is a NASA code project. It is listed in the code.json that code.gov harvests. It has a tag of When I click I know POSTPROC is a project on code.gov as it comes up when I use This is an example of a tag that exists in the code.json but doesn't get retuned by the search in code.gov. |
The search does take into account the tags. The search uses a I think this can be done with the weights on the You can see this here in the code-gov-adapter/libs/elasticsearch/utils.js#L146 The API has a To take a look at the terms you can run: curl "https://api.code.gov/v2/terms?source_id=1433&term_type=tags&term=crew%20and%20life%20support" \
-H 'X-API-KEY: DEMO_KEY' CC: @saracope |
Is your feature request related to a problem? Please describe.
When I search via GUI or API for text I know is in a tag for a code project but not in the description text, I do not get said code project. I suspect this is because elastic search is not including tags in the text search????
Describe the solution you'd like
I would like search to return text results even if text is only in a tag. This will likely require changing elastic search to include text in tag field of input JSONs.
Describe alternatives you've considered
Alternatively, users could potentially select whether the search functionality is applied to title, description, tag, or everything.
Additional context
I work on code.nasa.gov. We have greatly expanded the number of tags on each code project through natural language processing. Many A.I.-generated tags are higher order concepts that (1) don't appear in the description text (2) are more likely to pop into users' heads as something they'd want to find.
Value to end-user
Users will be more likely to find relevant code projects if we can match their higher order conceptual needs to be tag text.
The text was updated successfully, but these errors were encountered: