While working on trying to switch out PHP code with pure elasticsearch-painless, I noticed that the document doesn’t return “noop” even if the document is identical before and after update. I’m not sure if there is any consequences of having a version update for every time the code is executed? How does it scale? I’m simply trying to update the
Tag: elasticsearch
Performance when shipping logs from PHP to AWS ElasticSearch/OpenSearch
Is it recommended to ship logs directly from a PHP app to ElasticSearch? Or is it always better to store to file and use filebeat to ship the logs? I’m familiar with C# and Serilog implementation sending directly to ES and we’ve never had an issue with it, but was wondering if the same could be done with a PHP
Combine OR, AND and IN operators in Elasticsearch query
I am very new to the elasticsearch and I need to prepare the query which combines OR, AND and IN operators. What I want to achieve is having something like this in SQL: SELECT * FROM tableWHERE (field_1 = ‘foo’ AND field_2 IN(1,2,3) ) OR (‘field_1 = ‘bar’ AND field_2 IN(2, 3, 4) ); I am using elastic with PHP
Connecting Elasticsearch with Username + password in Shopware 6
I want to connect my Shopware 6.4 installation to an Elasticsearch instance. My Elasticsearch instance is secured by username and password. I can not establish a connection between Shopware 6 and Elasticsearch, because i can not find a way to pass username and password to the configuration. .env When running bin/console es:status i get a 401 status code. Unknown 401
FOS Elastica bundle populate command killed by oom_reaper with out of memory
There are 1,8 million records in the database table that I want to index through the fos:elastica:populate command. As soon as ~500.000 documents are already in the elasticsearch the indexing stops abruptly. In the dmesg on backend server I saw this: Elasticsearch, MySQL and PHP Symfony backend (where populate runs) are on different servers. How can I fix that and
How to pass slashes in Elasticsearch query using PHP?
Below mentioned elastic search query which is working fine if we hit it directly, { “query”: { “query_string”: { “query”: “”testtext/123″&…
Elasticsearch cardinality aggregation with text fields
I’m trying to query out average request generated in per session, I’m inserting a session_id while putting the data in my indices, I want to count distinct sessions and take out the average, while …
How to get exact text match from elasticsearch if the query is between quotes
I implemented elasticsearch using php for binary documents (fscrawler). It works just fine with the default settings. I can search the documents for the word I want and I get results that are case …
Get all data from index elasticsearch in php
I am doing a test with elasticsearch to implement it in my project. I use CodeIgniter for my website. I found this link:confact/elasticsearch-codeigniter-library I use this library in my project. Which works perfectly. Now my question is how can I return all my data from the index? In principle, when I use Postman I type this link for my search:
laravel log system with logstash
I have a laravel application that I want to store my logs into my logstash and see them in kibana i searched a lot over the net to find a solution for it but I didnt find any good source for it, is there any package to use laravel logs into logstash ??? by the way I have my logstash