Skip to content

feat: add validate search field method#1319

Merged
jupyterjazz merged 2 commits into
docarray:feat-validate-search-fieldfrom
srini047:feat-validate-search-field-1264
Apr 3, 2023
Merged

feat: add validate search field method#1319
jupyterjazz merged 2 commits into
docarray:feat-validate-search-fieldfrom
srini047:feat-validate-search-field-1264

Conversation

@srini047

@srini047 srini047 commented Mar 30, 2023

Copy link
Copy Markdown
Contributor

Fixes: #1264

Goals:

  • Add a validate search field method to check if the column name matches with the schema.
  • Ultimate aim is to provide a uniform error message.

@JoanFM JoanFM linked an issue Apr 3, 2023 that may be closed by this pull request
@JohannesMessner

JohannesMessner commented Apr 3, 2023

Copy link
Copy Markdown
Member

We should have a special case for search fields that are empty ('') or None. Some backends, like weaviate, don't want a search field and should not fail.

@jupyterjazz jupyterjazz changed the base branch from feat-rewrite-v2 to feat-validate-search-field April 3, 2023 08:52
@jupyterjazz jupyterjazz marked this pull request as ready for review April 3, 2023 08:54
@jupyterjazz jupyterjazz merged commit bf595ba into docarray:feat-validate-search-field Apr 3, 2023
@srini047

srini047 commented Apr 3, 2023

Copy link
Copy Markdown
Contributor Author

We should have a special case for search fields that are empty ('') or None. Some backends, like weaviate, don't want a search field and should not fail.

@JohannesMessner Mind creating a new issue just in case it's a priority so I can fix work on it?

@jupyterjazz

Copy link
Copy Markdown
Contributor

@srini047 I took over your PR, thanks for the contribution

samsja pushed a commit that referenced this pull request Apr 11, 2023
* refactor: dummy change

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>

* feat: add validate search field method (#1319)

Co-authored-by: Saba Sturua <45267439+jupyterjazz@users.noreply.github.com>

* feat: validate search fields

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>

* refactor: validate fields in es

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>

---------

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>
Co-authored-by: Sriniketh J <81156510+srini047@users.noreply.github.com>
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.

DocIndex: Validate if search_field is valid

3 participants