Skip to content

Noref/wildcard search tweaks#736

Open
danamansana wants to merge 4 commits into
mainfrom
NOREF/wildcard-search-tweaks
Open

Noref/wildcard search tweaks#736
danamansana wants to merge 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
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