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

Calling Elastica class using "_" instead of "\"

I'm using Elastica search engine for my Symfony project. Now, I'm getting the below error : The autoloader expected class "Elastica_Query_Bool" to be defined in file "/blablabla/vendor/ruflin/elastica/lib/Elastica/Query/Bool.php". The file…
Mikolaj
  • 190
  • 1
  • 11
0
votes
1 answer

Huge database indexing elasticsearch

I'm trying to index a database with over 1 million posts using elasticsearch the problem I'm having is that due to the amount of data the indexing crashes is it possible to do the indexing in parts or is this something that should not crash and I'm…
Touchpad
  • 662
  • 2
  • 12
  • 29
0
votes
1 answer

understanding ElasticSearch routing

I am trying to use the elasticsearch routing mapping to speed up some queries, but I am not getting the expected result set (not worried about the query performance just yet) I am using Elastic to set up my mapping: …
Lawrence Cooke
  • 1,567
  • 3
  • 26
  • 52
0
votes
1 answer

Elastic Search: Boosting results

I have many objects that have been indexed in ES. Two of each object's properties is "type" and "title". Is there any way to boost results so that if a certain type in the result set is the majority, the title is weighs much more than the other…
John
  • 3,037
  • 8
  • 36
  • 68
0
votes
1 answer

Elastica Facet Range

I have problem by creating query for elastica,it looks like this $finder = $this->container->get('fos_elastica.finder.website.product'); $boolQuery = new \Elastica\Query\Bool(); $fieldText = new…
0
votes
1 answer

Adding a JSON to Elastic Search using Elastica

How would I add a JSON to elastic search using Elastica for pHp? I don't want to have an index and mapping automatically generated as the number of fields in the JSON is massive. I've searched far and wide and have not found a simple example for a…
John
  • 3,037
  • 8
  • 36
  • 68
0
votes
1 answer

Automapping entities when using FriendsOfSymfony / FOSElasticaBundle implementing Elastic Search

Using FriendsOfSymfony / FOSElasticaBundle with Symfony 2, I need to know if there is anyway i can automap all of the entities with indexing. Or manual entries is only way i can map entities for implementing Elastica Searching. Thanks
0
votes
1 answer

exclude fields in _source mapping with foqelasticabundle

I have attachment plugin for Elasticsearch to index all my file stored in Document. I would like to excludes the file content from being stored in the _source. My config file look likes: document: mappings: …
channa ly
  • 9,479
  • 14
  • 53
  • 86
0
votes
0 answers

Elastica Search how to retrieve plain text results from indexed pdf/attachments

How do I get plain text search results from indexed pdf file contents with FOS Elastica Bundle? I'm using ElasticSearch with Attachment-Mapper Plugin Elastica FOS Elastica Bundle, with Doctrine on Symfony2 So far, I've been able to get the…
JonnyS
  • 314
  • 1
  • 7
0
votes
1 answer

ElasticSearch/Elastica: searching for exact term that includes "and" or other stopwords

I'm trying to get ES QueryString to match a search term that includes "and" within it, but everything I've tried so far (trying different analyzers, tokenziers, filters) has not worked. In MySQL terms, what I want is: WHERE field LIKE '%abbot and…
Eva
  • 4,859
  • 3
  • 20
  • 26
0
votes
1 answer

Elastica multi_field setup

I'm trying to use multi_field syntax of elasticsearch in combination with Elastica. I create an index and an mapping which looks like this: $mapping->setProperties(array( 'id' => array('type' => 'string', 'include_in_all' => true), …
Stefan
  • 359
  • 3
  • 17
0
votes
1 answer

symfony2.1 FOQElasticaBundle class load

I setup FOQElasticaBundle following this https://github.com/Exercise/FOQElasticaBundle#readme both Elastica and FOQElasticaBundle installed using git submodule. and when I try app/console, it gives error The autoloader expected class…
herlambang
  • 185
  • 2
  • 9
0
votes
1 answer

Elasticsearch Get Parent Fields

in my index i have two types Ads ans Product, Product : _index: fadel _type: product _id: 103|2 _version: 1 _score: 1 _source: { code: 35569058 manufacturer: Packard Bell tax_class_id: [ ] visibility: 4 price: [ ] in_stock: 1 ..... .... Ads…
Fadel
  • 701
  • 10
  • 12
0
votes
2 answers

Elastica search results not getting processed

I am using elastica to search in elasticsearch index on windows azure linux virtual machine. I created the index using JAVA API of elastic search:- IndexResponse response = client.prepareIndex("nod",…
Divyanshu Das
  • 3,698
  • 4
  • 23
  • 27
0
votes
2 answers

Sorting results based on location using elastica

I am trying to learn ElasticSearch using elastica to connect in and finding information hard to get in order to understand how to query it. So basically what I am trying to do is, I have inserted data into elastic search, added geo coordinates in…
Lawrence Cooke
  • 1,567
  • 3
  • 26
  • 52
1 2 3
17
18