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.

Official Website:

Official GitHub (also for issue tracking):

27 questions
8
votes
2 answers

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/elasticsearch-bundle "~5.0" as per…
Bart
  • 103
  • 1
  • 1
  • 5
3
votes
1 answer

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 included in the objects themselves. Is this…
joakimnorberg
  • 655
  • 3
  • 10
  • 16
2
votes
1 answer

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 build(); //elasticsearch-php client …
Serhii Shliakhov
  • 2,631
  • 3
  • 19
  • 37
2
votes
1 answer

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 how should I configure the manager when I'm no…
sejbot
  • 23
  • 3
2
votes
0 answers

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 ! Deprecation: [nested_filter] has been deprecated in…
2
votes
0 answers

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\MatchQuery; use…
hannahbanana2.0
  • 109
  • 2
  • 10
2
votes
1 answer

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\ElasticsearchDSL\Search; use…
Daniel
  • 539
  • 4
  • 25
2
votes
3 answers

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", "boost" : 10.0,} How can i do that in ONGR?
j.krug
  • 21
  • 3
2
votes
0 answers

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 page which displays data in a table. The user…
2
votes
1 answer

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": { "filtered": { "filter": { …
Alexander Schranz
  • 2,154
  • 2
  • 25
  • 42
1
vote
1 answer

Match documents where _id exists in nested array of objects

I have the following elastic search index { "companies": { "aliases": {}, "mappings": { "properties": { "industries": { "type": "nested", "properties": { "_id": { "type": "text", …
Michael Malura
  • 1,131
  • 2
  • 13
  • 30
1
vote
1 answer

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 search part or all of the name in a…
Jayd
  • 880
  • 1
  • 12
  • 16
1
vote
1 answer

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": {"must_not": {"match": {"thing":…
hannahbanana2.0
  • 109
  • 2
  • 10
1
vote
1 answer

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. However, we don't know which bundle has to be…
1
vote
1 answer

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 specify the index you're using in your…
Tieme
  • 62,602
  • 20
  • 102
  • 156
1
2