pdphilip / laravel-opensearch

An OpenSearch implementation of Laravel's Eloquent ORM
MIT License
16 stars 1 forks source link

[Fixed] Getting Raw Query #2

Closed karthikv29 closed 1 month ago

karthikv29 commented 2 months ago

Hello @pdphilip , Is there a way to log the raw query sent to OpenSearch? The ToSQL() outputs the sql version of the query passed, is there a way to output the OpenSearch query that has been passed to the cluster

pdphilip commented 2 months ago

Hey @karthikv29, I'll add this in the next release 👍

pdphilip commented 1 month ago

Hi @karthikv29 , if you update to the latest release (v2.0.2) then you'll gave the toDsl()/toSql() method available to you.

Docs: https://opensearch.pdphilip.com/os-specific#to-dsl

All the best

karthikv29 commented 1 month ago

Thanks a lot

On Fri, Aug 2, 2024 at 7:50 AM David Philip @.***> wrote:

Hi @karthikv29 https://github.com/karthikv29 , if you update to the latest release (v2.0.2) then you'll gave the toDsl()/toSql() method available to you.

Docs: https://opensearch.pdphilip.com/os-specific#to-dsl

All the best

— Reply to this email directly, view it on GitHub https://github.com/pdphilip/laravel-opensearch/issues/2#issuecomment-2265189194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHZTU4XHKFIN6XMSLTY4ALZPNW6RAVCNFSM6AAAAABKQRHYYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGE4DSMJZGQ . You are receiving this because you were mentioned.Message ID: @.***>