Questions tagged [foselasticabundle]

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

0
votes
0answers
17 views

FOSElastica don't recognize my ElasticSearch username and password

I've setup users and roles on my ElasticSearch and while it works like a charm with curl it doesn't seem to work through FOSElastica. I'm using it to populate my ElasticSearch indices. I've tried to ...
0
votes
1answer
10 views

How to use indices_boost in FOSElasticaBundle?

I have this query that gets what I need, it is just an example, but will do it. { "indices_boost": { "customer": 3, "customer_contact": 2 }, "query": { "term" : { ...
1
vote
1answer
34 views

How to use ingest pipelines on already indexed documents?

I've been using FOSElasticaBundle to index my documents (which are entities from a Symfony project kept in a db through Doctrine) into Elastic Search. FOSElastica does an automatic mapping and index ...
0
votes
0answers
22 views

Ruflin Elastica RandomScore and setSort

I have this query $boolQuery = new \Elastica\Query\BoolQuery(); $visibleQuery = new \Elastica\Query\Terms(); $visibleQuery->setTerms('visibleAndNotDeleted', array(true)); $boolQuery->addMust($...
1
vote
0answers
20 views

How to serialize an object “datetime” property into a “date” elasticsearch type, not “text”

I am creating a website using Symfony 4. Visitors will need to search through thousands of articles ordered by "dynamic_date". I use Elasticsearch 6.7, FOSElasticaBundle and JMS Serializer to index "...
0
votes
0answers
21 views

How to add a filter to a result set?

I am using FOSElasticaBundle and Symfony. I have a method to return some results merged from two types of objects: public function getMergedResults($query) { //See https://github.com/...
0
votes
0answers
19 views

Defining an ElasticSearch mapping for a particular entity with FOSElastica

I'm currently trying to use FOSElastica and I'm having trouble with the configuration. I want to use a serializer with most of my entities, but I want to specify the mapping for a particular entity, ...
2
votes
0answers
23 views

Fos elastica filter results with an array “record id's”

I have a SQL table that has many records. When I search, I do not want to use all the results, but I want it to be among the ids I want. I added 'term' to this and added 'addMust' to boolQuery. But ...
1
vote
0answers
66 views

Error in bulk request : index : … caused failed to parse

I'm having trouble with the FOSElastica bundle config. I'm trying to use the Symfony serializer to populate Elastic search with FOSElastica, and it works well for simple objects which don't need to ...
0
votes
0answers
26 views

Get child object in FOSElasticaBundle symfony

I want to get child object from my product. Is it fos_elastica.yaml file fos_elastica: clients: default: { host: elasticsearch, port: 9200 } indexes: photos: ...
0
votes
1answer
53 views

Search result in Symfony project with Elasticsearch

Problem: I have the following problem. I'm able to search through my data with the SKU. But since there are multiple distributors I want to filter on SKU & distributor. But how can I do that, ...
1
vote
1answer
43 views

Symfony Elasticsearch configuration file is not working with 1 index for multiple types

I have the following configuration in my config.yml fos_elastica: clients: default: { host: localhost, port: 9200 } indexes: app: finder: ~ ...
0
votes
0answers
15 views

FOSElasticaBundle must match all

Here is code $tagsQuery = new \Elastica\Query\Terms(); $tagsQuery->setTerms('tags.id',array_keys($tagsArray)); $boolQuery->addMust($tagsQuery); generated query GET _search { "...
0
votes
0answers
13 views

Suppress Hydration (Transformation) in ElasticSearch (FOSElasticBundle)

How do I suppress hydrating the search results for FOSElasticBundle? use FOS\ElasticaBundle\Repository; class ArticleSearchRepository extends Repository{ ... // finds objects (in 'transformed') ...
0
votes
0answers
44 views

fos-elastica-bundle: pagination, cannot get the right total count

It appears I cannot retrieve the right document total count for a query using fos-elastica-bundle. In my setup, the index holds 40 documents matching the query. The pagerfanta is initiated with the ...
0
votes
1answer
39 views

What is the best way to map following unstructured data in elastic search?

I am trying to figure out what could be the best type and anlyzer for a field which has unstructured data. request field could be of following and many other {"_format":"json","follow":{"followee":...
0
votes
0answers
42 views

FosElasticaBundle simple fuzzy request

I'm usin FosElasticaBundle and Symfony 3.4 , I'm looking in the doc but I can't find a way to reproduce this simple request with fos elastica bundle. It seems simple, though. { "query": { ...
0
votes
0answers
63 views

Keeping ElasticSearch in sync with updates through Doctrine

We're using FOSElasticaBundle for integration between Doctrine and ElasticSearch. We have a lot of fields indexed in ES. When updating one of the mapped entities directly FOSElasticaBundle makes sure ...
0
votes
0answers
45 views

Symfony 3.2 FOSElasticSearch 5.x

I'm trying to install FOSElasticSearch bundle (using composer) into Symfony 3.2 This is my composer.json file content: { "name": "CompanyName/standard-edition", "license": "MIT", "type": "project", "...
0
votes
0answers
27 views

FosElastica - Error when removing a value from a mapped array

I have a relatively simple mapping that causes me a problem when updating data. it's a small array of strings. types: sector: properties: company: type: nested ...
1
vote
0answers
125 views

FosElasticaBundle populate with serializer don't index all fields

I'm working with FOS Elastica bundle and trying to index some datas inside Elasticsearch. I followed the doc so I wrote this conf fos_elastica: clients: default: { host: '%env(...
0
votes
0answers
40 views

symfony elastica bundle Exception when property of entity relation contain null

I have a item entity, stock entity and color entity Item has oneToMany stocks and stock have ManytoOne association with color now I am mapping item entity and stocks with elastic search. I am ...
0
votes
0answers
99 views

suggestion does not support [field]

Using fos_elastica.finder.post_index.post service of the FOSElasticaBundle v5.0.3 to get list of available sugesstion post as defined under my mapping configuration: fos_elastica: clients: ...
0
votes
1answer
1k views

Unknown key for a VALUE_STRING in [index]

I'm trying to find a way where I can buikd my $params array using the native syntaxe to search for a post with name equal to 'test': $params = [ "index" => "post_index", "type" => "post"...
0
votes
0answers
329 views

Elastic search can't convert long to float or float to long

I have a few fields defined as numeric(1,16) in postgres and my mapping looks like this (with a template) invoice: dynamic_templates: numbers: match_mapping_type: "float" ...
1
vote
1answer
91 views

FOSElasticaBundle: ManyToMany relationship

I'm trying to use FOSElasticaBundle on my symfony 4 project and I have some problems. I have an entity, "Users", with the next annotation in the property "segments": * @var Collection $segments * @...
0
votes
0answers
23 views

Fos elastica get code name in code table

I am using fosElastica for populate at elasticsearch. I have a two entity, that entities relationship together. But I couldn't populate and show category name in products index. How can I to do? ...
0
votes
0answers
36 views

fos elastica custom database

I want to use fos_elastica (symfony bundle) in my projects. I have a three database connection. How can I use custom_database_connection? fos_elastica: clients: default: ...
2
votes
1answer
174 views

Foselasticabundle : method returns empty results

I use Elasticsearch with Foselasticabundle to search in my Symfony app, but it returns empty results. This is my config and search method: foselasticbunde.yml: indexes: search: ...
0
votes
0answers
92 views

FOS Elastica search with entities not directly associated

I'm using FOSElasticaBundle for a search; I need a text and some ids as criteria for the query. Here's how the index is defined in config.yml: lignecatalogue: types: ...
0
votes
0answers
24 views

FosElasticBundle Indexing without doctrine

When you have use FosElasticeBundle with doctrine, you define mappings in config run fos:el:populate and then on every change documents are added/edited or deleted. The question is how to add data ...
0
votes
0answers
20 views

Any way to sort all queries FOSElasticaBundle

I got this entity mapped with FOSElasticaBUndle: content: mappings: preTitle: ~ title: ~ code: ~ ...
2
votes
0answers
41 views

FOSElasticaBundle user indexes

I'm using symfony and elasticsearch with FOSElasticaBundle. I've got 2 entities: User, and UserItems. Is there a way to create a own index for each user automatically? so each logged in user can ...
1
vote
2answers
189 views

FOSElasticaBundle not populating searchableDocuments in AWS ElasticSearch

I am trying to get FOSElasticaBundle working on AWS ElasticSearch. At the moment I have my development env all set up and working perfectly using Docker containers for ElasticSearch using FROM ...
1
vote
2answers
213 views

Get Elasticsearch Score in Symfony

Elasticsearch provides a score field if you do a get request via cURL. { "_index": "twitter", "_type": "tweet", "_id": "123", "_score": 4.2, "firstName": "Max" "lastName": "Mustermann" } ...
0
votes
0answers
238 views

Argument 1 passed to Doctrine\Common\EventManager::addEventSubscriber()

i get some trouble when i would load symfony app: php.CRITICAL: Type error: Argument 1 passed to Doctrine\Common\EventManager::addEventSubscriber() must implement interface Doctrine\Common\...
0
votes
1answer
68 views

FOS ElasticaSearch Unrecognized options index_analyzer search_analyzer mappings

I'm blocked by Symfony error: Unrecognized options "index_analyzer, search_analyzer, mappings" under "fos_elastica.indexes.optro.types.technical_assistance" I use Symfony 3.4.11 and FOS-...
0
votes
1answer
107 views

Elastica, KNP Paginator and Resultset > 10000

Pagination works fine even for large Results. It even shows that there are 25k Results for the Query. Pagination works fine for the first 10000 entries. Though, if i want to display entry 10000 - ...
1
vote
0answers
94 views

How to integrate elasticsearch with sonata-admin bundle

Hi everyone I'm using SonataAdminBundle and I want to integrate Elasticsearch in order to improve performance. I have setup the elasticsearch and I have configured the fos_elastica. I have one ...
0
votes
1answer
311 views

FOS elastica bundle 4.* - automatic index entity does not work

I'm currently trying to let the FOS Elastica bundle to automatically update the index when there are new entries with the following settings: fos_elastica: clients: default: { host: localhost, ...
0
votes
1answer
98 views

How do you display ElasticSearch results in a Twig page

I'm using FOSElasticaBundle and have the index setup. Queries work and I have my controller setup with the following: $finder = $this->container->get('fos_elastica.finder.app.product'); $...
0
votes
0answers
69 views

Elasticsearch index limit?

I'm working with Symfony 4, FosElasticaBundle and Kibana, and I have approximatly 600K items to index in ElasticSearch. I'm using the command fos:elastica:populate, and when I run this I have ...
0
votes
1answer
81 views

ElasticSearch match if value in list of values

I'm working with ElasticSearch (on a Symfony 4 project with FosElasticaBundle) and I don't know how can I build a query like : Match if value in list of values I have a field "code" and I need to ...
0
votes
1answer
177 views

FOSElastica nested query

My collections are like this: { "_index" : "test_index", "_type" : "test_type", "_id" : "10000", "_score" : 1.0, "_source" : { "user_id" : 12, "index_date" : { ...
1
vote
0answers
49 views

How create parent mapping in FOS_elasticBundle with Elasticsearch 6?

Elasticsearch 6 doesn't support parent mapping anymore. Do I have to use "type:join" now? How can I map entity parent in FOS_elasticBundle with Elasticsearch 6?
0
votes
1answer
43 views

FOSElasticaBundle and FPNTagBudle index tags

I am using FPNTagBudle for tagging my documents and FOSElasticaBundle for indexing them into elasticsearch index. With FPNTagBudle to load tags into object you need to use loadTagging method like so: ...
0
votes
1answer
77 views

FosElasticaBundle Query Prefix does not seem to return corrent results

What I'm trying to accomplish is to return results that: search in 2 types ( recipe, product ), for a moment didn't take care of it property name starts with search query establish fieldFuzziness ( ...
-2
votes
1answer
53 views

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 ...
0
votes
3answers
451 views

Apply different filters on multiple index search

I'm using FOSElasticaBundle with Symfony 3. I want to search on different index in ES6. I have 2 entities Dogs, Cats with a field name "owner" (entity User). Dogs and Cats have a field "name" (...
5
votes
2answers
1k views

FosElasticaBundle: multiple types in one index

I need to build a multiple-entity search. I don't want every T1, then every T2. When I use fos:lastica:populate, I get an error: Rejecting mapping update to [search_dev] as the final mapping ...