Questions tagged [elastica]

Elastica is a PHP client for the elasticsearch full-text search and analytics engine.

Introduction

Elastica is open source and you can download or clone the source code on Github from ruflin/Elastica.

You can find the complete API here.

Requirements

Elastica v.0.20.5 require PHP 5.3 >=, for using Elastica on PHP 5.2 let see Elastica v0.19.8

Download

You can download this project in either zip or tar formats.

The prefered way is to clone Elastica with Git by running:

$ git clone git://github.com/ruflin/Elastica

Composer

You can also install Elastica by using composer:

{
    "require": {
       "ruflin/Elastica": "dev-master"
    }
}
257 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
0 answers

ElasticSearch: can not connect to host

I try populate elastic storage with 1 000 000 documents. This data loads from database (PostgreSQL). And i have a error after write 28K documents: [Elastica\Exception\Connection\HttpException] Couldn't connect to host, Elasticsearch down? …
ZhukV
  • 2,892
  • 6
  • 25
  • 36
0
votes
1 answer

ElasticSeach - Get both incomplete and plural words

I have a product catalog which I am indexing in ElasticSearch using the Elastica client. While implementing search, I was appending * after the typed search terms so that when one types whis or whisk he will already start seeing search results for…
Hitesh
  • 330
  • 1
  • 4
  • 10
0
votes
1 answer

FOS ElasticSearch search tokens in different order

I've this in my index: "ground beef". This is my config: settings: index: analysis: analyzer: index_analyzer: tokenizer: whitespace filter: [lowercase, asciifolding,…
user3303589
0
votes
1 answer

Elastica search in different languages

I want to index the word "jogging" and want to be able to search for the german translation "laufen" or "rennen". Is that possible with ElasticSearch/Elastica?
user3303589
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

how to obtain elasticsearch performance optimization in ruby on rails

I have elasticsearch application .how can I make its performance at the optimize level ,I know this is some thing verge question but My client ask me to do so..Even my application is working smoothly on my local but in production the scenario may be…
Anish
  • 558
  • 3
  • 10
  • 33
0
votes
2 answers

Elasticsearch searching for the exact query with space

i want my search return the exact match of my query string. Query String includes 2 words. query :"general doctor" should return only general doctor not "doctor general" Search method: $lower = 'general doctor'; $query = new…
user905476
0
votes
2 answers

FOS Elastica manual provider service injection issue

I am trying to create a manual provider to manually populate my FOS Elastica index to account for some complex joins. At the moment, I am just trying to get the provider to work even without the joins, and I am having trouble injecting the correct…
Byte Lab
  • 1,576
  • 2
  • 17
  • 42
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

Can't populate doctrine embedded document in Elastica

I have an embedded document in my Doctrine ODM Document when I run this command php app/console fos:elastica:populate I get this Error : Object of class ng\myBundle\Document\Coordinates could not be converted to string in…
Aysennoussi
  • 3,720
  • 3
  • 36
  • 60
0
votes
1 answer

Using regex with Elastica

I have been using elastisearch trough elastica recently and I am having problems using the regexp. Here is my problem: I need to find all instances of my "Foo" entity with the "name" NOT begin by a letter. class Foo { protected $name; //…
William Vbl
  • 503
  • 3
  • 8
0
votes
1 answer

elastica scoring based on regular expression using mvel

I am new to elastic search and here is my scenario I am trying to solve. I have a search input box that supports autosuggestion logic. The results are fetched from an elastic index which uses ngram filter. What I want to improve is to introduce a…
elviento
  • 13
  • 3
0
votes
1 answer

FOSElasticaBundle CustomScore query pagination

I have just started using the FOSElasticaBundle and have so far found it really good to use. I am not sure if it is my ignorance of the bundle/Elastica or my lack of knowledge about ElasticSearch in general, but is it possible to have a CustomScore…
frak
  • 858
  • 1
  • 10
  • 30