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
0
votes
1 answer

Elasticsearch - Include in facet if array contains elements

I'm trying to find out if it's possible to facet/aggregate on a field, if that field (which is an array) contains 1 or more records. For example - Let's say I have 3 documents in my index, all under the "user" type. { "id": 1, "name":…
0
votes
1 answer

FOSElasticaBundle indexing slows Symfony to a halt

Indexing things in ElasticSearch using FOSElasticaBundle doesn't work. Here is from my config (app/config/config.yml): fos_elastica: clients: default: { host: localhost, port: 9200 } serializer: callback_class:…
Tor
  • 254
  • 1
  • 7
  • 15
0
votes
1 answer

FOSElasticaBundle result is different from Doctrine result?

Why following queries return different results? In more details I want to get all active posts, order by tttAt descending. Doctrine2 returns my expected result but not FOSElasticaBundle Doctrine2 returns all records but FOSElasticaBundle returns…
0
votes
1 answer

FOSElasticaBundle indexing hidden objects

I have installed FOSElasticaBundle, my config fos_elastica.yml is as follows: fos_elastica: clients: default: { host: localhost, port: 9200 } indexes: test: client: default index_name : %elastica_index_name% …
aidarka1
  • 183
  • 4
0
votes
1 answer

Multiple searches with FOSElasticaBundle for a keyword

How to search with original keyword and transformed keyword? I have indexed data like this with Elastica: id1: { content: "Phòng tránh rủi ro", content_canonical: "Phong tranh rui ro" }, id2: { content: "Phóng nhanh vượt ẩu", …
0
votes
1 answer

Cron job for elastic search (fos elastic bundle)

I have a cron job which runs a shell script on Ubuntu linux server LTS 12.0.04 every 2 mintues to build elastic search index, below is the shell script: #! /bin/sh echo "--------------------------------------------------------------" >>…
DP2
  • 635
  • 9
  • 22
0
votes
1 answer

Auto index child objects in fos elastica

I have created an elastic search mapping in config.yml which is using doctrine orm, the issue is that when I create a new document the index is auto populated for the top most object which is "documents" but not for any child objects such as…
DP2
  • 635
  • 9
  • 22
0
votes
2 answers

how to adjust relevancy in elasticsearch

I am using elastic search using snowball analyzer to search at one field (called caption). When I searched for 'dress korea', it also returns results with dress only and korea only. Is it possible to limit the search so it has to contain both search…
adit
  • 32,574
  • 72
  • 229
  • 373
0
votes
1 answer

using MatchAll in elasticsearch and elastica

I am having a hard time trying to use MatchAll in elastic search using elastica, currently I have the following querystring: $pictureQuery = new \Elastica\Query\QueryString(); $pictureQuery->setParam('query', $searchquery); …
adit
  • 32,574
  • 72
  • 229
  • 373
0
votes
1 answer

Elasticsearch not find anything on the field with more words

I'm trying elasticsearch and it looks great! I noticed, however, a problem very uncomfortable, in a field that contains hello world if I search hello wo returns no result! Why does this happen? Place my configuration (FOSElasticaBundle):…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
1 answer

symfony2: FOSElasticaBundle class included in AppKernel can not be found

i installed FOSElasticaBundle using Composer, After that as per the given instruction on https://github.com/FriendsOfSymfony/FOSElasticaBundle i registered FOSElasticaBundle Class in Appkernel.php file, demo code is as following //…
NGPATEL
  • 92
  • 1
  • 11
0
votes
1 answer

installing FOSElasticaBundle using composer error

I have the following composer.json: http://pastebin.com/qtpJHqbW However when I tried to run composer: update I get the following error: Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested…
adit
  • 32,574
  • 72
  • 229
  • 373
-1
votes
1 answer

Elastic search > Groovy script > Nested Fields with multiple result in symfony

How to add condition and get value of FeeAmount nested field in totalRate? I have used Fos-elastica bundle in symfony Elastic search mapping profile: mappings: id: ~ title: ~ name: ~ rates: type: "nested" …
Uttam Panara
  • 541
  • 2
  • 10
  • 28
-1
votes
1 answer

Symfony search with tags

We're building an application that has multiple different entities that are pretty simple with name & description and some specific stuff. Now we want to add tags, for the purpose of adding extra search keywords. (There will also be a tag cloud…
Rein Baarsma
  • 1,466
  • 13
  • 22
-2
votes
1 answer

Index a foreign key label with FosElasticaBundle

When I index my relationnal database (Postgresql), I want to get the string value intead of the foreign key id (recreate the relation between the two tables personn and country..) I wish to do that in the fos_elastica.yml mapping file…
htm
  • 1
  • 1
1 2 3
16
17