Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change text annotation indexing for quick search #351

Open
bkis opened this issue Sep 24, 2024 · 0 comments
Open

Change text annotation indexing for quick search #351

bkis opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request low-hanging fruit Easy to have, but still delicious

Comments

@bkis
Copy link
Member

bkis commented Sep 24, 2024

  • add tokens_str to mapping in rtype_index_doc_props of TextAnnotation
  • add tokens_str: " ".join([t for t in content.tokens]) to return of rtype_index_doc_data
  • and...
@classmethod
    def quick_search_fields(cls) -> list[str]:
        return ["tokens.token", "tokens.annotations.value"]  # make this return ["tokens_str"]
@bkis bkis added the enhancement New feature or request label Sep 24, 2024
@bkis bkis self-assigned this Sep 24, 2024
@bkis bkis added the low-hanging fruit Easy to have, but still delicious label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-hanging fruit Easy to have, but still delicious
Projects
None yet
Development

No branches or pull requests

1 participant