Questions tagged [ongr]

ONGR is a free and open platform for scaling online business models, built by entrepreneurs for entrepreneurs. This tag is for questions regarding their various components.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

How to use other_bucket_key in ongr-io filters aggregation?

I am using a filtersaggregation, and it all works in the kibana console. I need to translate this bit of code into ongr, but the documentation is sketchy. I can't find how to do "other_bucket_key&...
marcel's user avatar
  • 1
1 vote
1 answer
40 views

Match documents where _id exists in nested array of objects

I have the following elastic search index { "companies": { "aliases": {}, "mappings": { "properties": { "industries": { ...
Michael Malura's user avatar
0 votes
1 answer
110 views

Elasticseach change sql to Query with ONGR\ElasticsearchDSL

I'm trying to convert an mysql-query to a query for Elasticsearch, but I think I am on the wrong way. The mysql-query looks like the following: WHERE foo = 0 OR (foo = 1 AND bar LIKE "%blub%"...
dbechstein's user avatar
8 votes
2 answers
23k views

error code 1 cache:clear during composer require

Can't install/require the ongr/elasticsearch-bundle "~5.0" as per github example. Im running a fresh install of the latest symfony. I'm running the following command: composer require ongr/...
Bart's user avatar
  • 103
2 votes
1 answer
475 views

Add highlight using ongr-io/ElasticsearchDSL package

Can't find any example how to add higlight to query results using https://github.com/ongr-io/ElasticsearchDSL <?php require 'vendor/autoload.php'; //Composer autoload $client = ClientBuilder:...
Serhii Shliakhov's user avatar
0 votes
1 answer
85 views

Errors running 'composer update' with ONGR ES-Bundle

i'm running the ONGR ElasticSearchBundle in my Symfony Project(prexously i user only the ES-PHP Client). I'll search an existing Index with Company Names and Descriptions, the index Name is companies. ...
Wazlav76's user avatar
0 votes
1 answer
235 views

ONGR ElasticSearchBundle Mapping in Document Class

i installed the ONGR ElasticSearchBundle in my Symfony Project. To search a Index with Company Names and Descriptions, the index Name is companies. It looks this way: "mappings": { "_doc": ...
Wazlav76's user avatar
2 votes
1 answer
300 views

Is it possible to use ongr-elasticsearch bundle without AppBundle in Symfony 4?

I'm in the process of upgrading a project from Symfony 2 to Symfony 4. As per the recommendation from Symfony, I no longer use AppBundle, instead all the code is directly under src/. My question is ...
sejbot's user avatar
  • 23
0 votes
1 answer
108 views

ONGR Elasticsearch Bundle AWS Connection Issue

Hello Ther i try to connenct to ES indet that is located on AWS, but i still get he Error. [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] You have requested a non-...
Wazlav76's user avatar
2 votes
0 answers
998 views

Nested filter issue when using sort

After upgrading from Elasticsearch 5.0 to Elasticsearch 6.4 I get the following warnings when using sort: ! Deprecation: [nested_path] has been deprecated in favor of the [nested] parameter !...
Daniel Mueller's user avatar
0 votes
1 answer
622 views

Sorting results by distance in ONGR ElasticsearchDSL

I'm using ONGR ElasticsearchDSL Bundle together with Symfony 3 to search through a list of citys by lat/lon coordinates, like so: $repository = $this->elasticsearchManager->getRepository(...
Sorcy's user avatar
  • 2,587
0 votes
1 answer
117 views

Search returns too irrelevant results

I am trying to get a full-text search work with ONGRFilterManagerBundle. Everything is configured and added to the project but as soon as I ran a search on some data I found that the search returns ...
khusseini's user avatar
  • 174
0 votes
1 answer
49 views

ONGRFilterBundle - Dynamic aggregate limit filters?

How can I increase 10 options per filter defined as default. ongr_filter_manager: managers: # ... filters: dynamic_attributes: type: dynamic_aggregate request_field: ...
Borja Pombo's user avatar
1 vote
1 answer
285 views

ONGR ElasticsearchBundle mapping virtual fields to ElasticSearch

I want to do a full name lookup in ElasticSearch when I have a first name and last name in MySQL. I have looked at cross_fields and copy-to, but neither support the flexibility of being able to ...
Jayd's user avatar
  • 880
0 votes
1 answer
291 views

ElasticSearchDSL: Order by relevence or other fields if set

hope you are well. I am new to elastic search and using the ElasticSearchDSL plugin is amazing certainly when you have criterias where you can apply certain logic such as if something is set, include ...
PHPology's user avatar
  • 1,017
0 votes
1 answer
442 views

How to create a parent-child inner hit query with elasticsearchDSL Builder

Using the ONGR/ElasticsearchDSL I'm trying to add a Parent child inner hit query. The example documentation indicates that the proper way to do this is to { "inner_hits" : { "children" : {...
hannahbanana2.0's user avatar
1 vote
1 answer
357 views

ElasticsearchDSL builder how to create SHOULD NOT query

Using the php dsl builder, I'm trying to create a SHOULD NOT query. Using the json query syntax you can nest a MUST_NOT within a SHOULD bool to create one. Example {"bool": {"should": { "bool": {"...
hannahbanana2.0's user avatar
2 votes
0 answers
319 views

Class not found for ElasticsearchDSL builder

I'm getting the error 'PHP Fatal error: Class 'Search' not found'. For the following query: use Elasticsearch\ClientBuilder; use ONGR\ElasticsearchDSL\Search; use ONGR\ElasticsearchDSL\Query\...
hannahbanana2.0's user avatar
2 votes
1 answer
111 views

Unexpected BoolQuery when compose search object and use $search->getQueries()

I'm using the ongr/elasticsearch-dsl bundle to build my queries and I need to compose the search-object on different places. When I do it in the same place, it works as expected. use ONGR\...
Daniel's user avatar
  • 539
1 vote
1 answer
179 views

How to establish connection between OXID shop and ONGR?

We(me and my team) are doing some research, how ONGR and OXID communicate with each other as it is required for our next project. We have already setup Demo app of the ONGR bundles and it is working. ...
Swapnil Pathak's user avatar
1 vote
1 answer
368 views

Is multi index search possible with ongr.io's ElasticSearchBundle?

I'm looking into ongr.io's ElasticSearchBundle but can't find a way to perform a multi index search or query. Am I overlooking something or is it just not possible (yet)? According to the docs, you ...
Tieme's user avatar
  • 62.7k
1 vote
2 answers
504 views

Substring search with ONGR Elastic Bundle for Symfony

I'm using the https://github.com/ongr-io/ElasticsearchBundle for my Symfony3 project. The reason for this bundle is, that my project is using propel. Till now everything is fine, it's working quite ...
Konrad's user avatar
  • 77
1 vote
1 answer
902 views

ongr-io elasticsearch bundle implementation with doctrine symfony2

In our symfony2 project we want to implement elasticsearch with ongr-io bundle, but our whole system is built on doctrine. Is it possible to somehow use ongr-io elasticsearch bundle without totally ...
Žygimantas Končius's user avatar
2 votes
3 answers
274 views

How do i add boosting to the elasticsearch mapping in ONGR?

I want to boost documents in my ONGR setup. As show here the most efficiant way to do so, is by adding it to the mapping: "boosting_field": {"type" : "integer", "store" : "yes", "index" : "yes", "...
j.krug's user avatar
  • 21
3 votes
1 answer
307 views

PHP and Elasticsearch include score/relevance in returned object

So I'm using PHP Symfony and the Ongr-Elasticsearch bundle, to query my documents and return matching objects. The results seem to be sorted by relevance/score, but the actual relevance/score isn't ...
joakimnorberg's user avatar
2 votes
0 answers
352 views

Symfony2 Advanced (Elasticsearch) Search Filter

I'm developing an application using Symfony2 and Elasticsearch. To communicate the ORM-way I use the Ongr ElasticsearchBundle (https://github.com/ongr-io/ElasticsearchBundle). In my project I have a ...
tyler-durden0's user avatar
2 votes
1 answer
381 views

Elasticsearch Prefixfilter special character not working

I used ongr-elasticsearch bundle in php and wanted to add a PrefixFilter. When I add a slash at the front of the prefix it dont work. Here the query I build in ElasticSearch HQ Plugin: { "query": ...
Alexander Schranz's user avatar