Questions tagged [foselasticabundle]

FOSElasticaBundle - Elasticsearch PHP integration for your Symfony2 project using Elastica.

Elasticsearch client is comparable to a database connection. Most of the time, you will need only one.

Elastica can handle objects instead of data arrays if a serializer callable is configured

Elasticsearch index is comparable to Doctrine entity manager. Most of the time, you will need only one.

Elasticsearch type is comparable to Doctrine entity repository.

If you are using the JMSSerializerBundle for serializing objects passed to elastica you can define serializer groups per type.

241 questions
1
vote
1 answer

fos:elastica:populate new data, whtich is inserted in mysql externally

we have a symfony-application, using the FOS\ElasticaBundle\Elastica-Package. All works fine. We have populate the Mysql-Data with ./app/console fos:elastica:populate --no-debug . The most data in the app will be edited in the symfony-app, and the…
Bueck0815
  • 193
  • 8
1
vote
1 answer

Indexing large objects into ElasticSearch

I am trying to index large objects - objects with lots of relations (about 100'000) - into ElasticSearch index, but the objects don't fit into memory. Sometimes Postgres limit is exceeded, sometimes PHP. And I cannot increase the limits any…
JohnSmith
  • 436
  • 5
  • 17
1
vote
0 answers

Bulk updation of data in elastic search vis Fos Elastica bundle

Our application back-end is made of Symfony 2.5.x. We are using MySQL 5.x and Elastic search 1.7.x for storing our data. In our application, we store data of different companies in their individual database i.e. multi-tenant approach. Similarly we…
joy d
  • 408
  • 2
  • 13
1
vote
1 answer

ElasticSearch how to search by 2 level nested items?

I have this kind of data structure [ { id:1, translations: [ { language: {id:1; name: "English"}, value: "How are you ?" }, { language: {id:2; name:…
Hayk Aramyan
  • 223
  • 3
  • 14
1
vote
1 answer

foselasticabundle nested queries

Im using FOSElasticaBundle to integrate my symfony3 project with elasticsearch. I have a mapping similar to: company: mappings: id: { boost: 1, type: string, index: not_analyzed } cik: { boost: 2, type: string, index:…
bitgandtter
  • 2,179
  • 6
  • 31
  • 60
1
vote
1 answer

Fos Elastica remove common words(or, and etc..) from search query

Hello I`m trying to get query results using FosElasticaBundle with this query, I can't find a working example for filtering common words like (and, or) if it is possible this words not to be highlighted also would be really good. My struggle so far…
Filchev
  • 224
  • 1
  • 12
1
vote
1 answer

how to mast match all args pass in array in elastic search?

Here term gives result if one of all args (1,2) match and i need all args must have in degree.id of user here i have data like this "id": 66, "name": null, "degrees": [ { "id": 1, "name": "BCA", },{ "id": 2, …
Uttam Panara
  • 541
  • 2
  • 10
  • 28
1
vote
0 answers

FOSElasticaBundle & Propel

I have installed FOSElasticaBundle "friendsofsymfony/elastica-bundle": "^3.2" (with symfony 2.8.8) and tried to define this simple configuration fos_elastica: clients: default: { host: %elastic_host%, port: %elastic_port% } indexes: …
Konrad
  • 77
  • 1
  • 8
1
vote
0 answers

Symfony2 + YML: import files without breaking indent

I got a small question: I'm currently building a Symfony app coupled with an ElasticSearch index. I use FOS_Elastica, and came across some snag. Not quite a problem, but just a question of ergonomics. For the purpose of my app, I have some pretty…
Tiriel
  • 43
  • 1
  • 10
1
vote
1 answer

ES giving error when sorting by distance

I'm trying to sort search results by distance. However, when i try i get the following error: { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "sort option [location] not…
Koen Cornelis
  • 192
  • 2
  • 13
1
vote
1 answer

Install elastica-bundle It require already installed versions from symfony/form

Sorry for my english. I'm trying to install elastica-bundle in my Symfony application, and I get the following error: friendsofsymfony/elastica-bundle 3.1.0 requires ~2.1 -> satisfiable by symfony/form[2.1.x-dev, 2.2.x-dev, .... symfony/form but…
1
vote
0 answers

FOSElasticaBundle and Gedmo translatable

I want to use FOSElasticaBundle on my symfony2 project. Both bundles are correctly configured and functionals. I already use Gedmo Translatable to handle multilingual but I cannot find how to implement gedmo translations in my elastic mapping or to…
GregOs
  • 403
  • 3
  • 13
1
vote
1 answer

FosElasticBundle not Analyzedfield

I have elastic search 2.2.1 and "friendsofsymfony/elastica-bundle": "~3.0", I need add not analyzed for field in index I add in config to filed skill "fields" and "index: not_analyzed", but after app/console fos:elastica:populate --no-reset…
shuba.ivan
  • 3,824
  • 8
  • 49
  • 121
1
vote
0 answers

FOSElasticaBundle config.yml reuse persistence

I have the following in my config.yml: # other settings... fos_elastica: clients: default: { host: localhost, port: 9200 } indexes: homestead: types: volunteer: mappings: …
SnelleJelle
  • 933
  • 5
  • 18
  • 35
1
vote
0 answers

Boosting field in the mapping file not working with QueryString

I have an application where the users (clients) can activate different modules. On the search, the user should be able to search a value in the entire index (for the modules he has activated). The problem is that I also need to boost some…
Aly
  • 458
  • 2
  • 13