Skip to content

Noref/wildcard search tweaks#736

Merged
danamansana merged 4 commits into
mainfrom
NOREF/wildcard-search-tweaks
May 27, 2026
Merged

Noref/wildcard search tweaks#736
danamansana merged 4 commits into
mainfrom
NOREF/wildcard-search-tweaks

Conversation

@danamansana
Copy link
Copy Markdown
Contributor

We're still working on the wildcard queries but this adds some support for the current requirements:

  • Use a query_string query in case * is present
  • Except for shelfMark fields
  • Some minor refactoring to make this a little easier
  • Also a couple of tests

@danamansana danamansana requested a review from nonword May 15, 2026 20:32
...queryStringQuery(otherFields, term, type),
...multiMatch(shelfMarkFields, term, type)
]
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could queryStringQuery and multiMatch be written to return [] when given an empty array so that you can skip the special case that's happening 533-535?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! Actually they already do return [], I've removed the unnecessary conditional

@danamansana danamansana requested a review from nonword May 19, 2026 20:19
@danamansana danamansana merged commit b03fe9d into main May 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants