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

[FEATURE] ShortUrl to result of AsyncOpenSearch(...) search #840

Open
S0NNER10N opened this issue Nov 2, 2024 · 3 comments
Open

[FEATURE] ShortUrl to result of AsyncOpenSearch(...) search #840

S0NNER10N opened this issue Nov 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@S0NNER10N
Copy link

hey

I creating async client

client = AsyncOpenSearch(
            hosts=[{"host": host, "port": port}],
            http_auth=(user, password),
            use_ssl=True,
            verify_certs=False,
            ssl_show_warn=False,
        )

then performing search

  search_results = await self.client.search(
      size=self.max_hit_to_search,
      q=f'request_id: "{reference}"',
      index=self.index_name,
      timeout=DEFAULT_HTTP_TIMEOUT
  )

is there a way to get shorturl to result like in browser? if not -- is it in near plans?

thanks

@S0NNER10N S0NNER10N added enhancement New feature or request untriaged Need triage labels Nov 2, 2024
@dblock dblock removed the untriaged Need triage label Nov 4, 2024
@dblock
Copy link
Member

dblock commented Nov 4, 2024

Is shorturl an OpenSearch Dashboards feature or is it something returned from the API? I am not familiar with it.

@S0NNER10N
Copy link
Author

i mean shorturl generated this way in web gui:
image

is it possible generate it with opensearch-py?

@dblock
Copy link
Member

dblock commented Nov 5, 2024

@S0NNER10N I am not familiar with how that's implemented, want to dig that up and then we can figure out whether it belongs in the client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants