Giter Site home page Giter Site logo

bouncy's People

Contributors

fadion avatar lixinqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bouncy's Issues

Customizing Document Fields

Hi,
I tried creating the $documentFields property in my model but was getting an error in my IDE, "expression is not allowed as field default value". I even copied the array in the documentation thinking that I probably have a typo somewhere but got the same error.

I needed to do this as I need to have a custom field for "full_name" which is a concatenation of first_name and last_name but I don't want to have to create this in my database.

Can you reproduce this error? what seems to be the issue?

Thanks.

seams can't search fuzzy?

I can only search out one record,even have many records.
and highlight() method don't work at all,why?

Laravel 5 Pagination Support

Hi,

Can you add support for Laravel 5 Pagination? The current implementation doesn't work and it throws an error "Class 'Illuminate\Support\Facades\Paginator' not found - since it doesn't exist", And the errors keeps on coming for every fix made.

Hopefully you will provide a fix soon.

Thanks.

Does this package allow us to access previous versions of documents?

I've used elasticquent, but for storing versioning of documents i found that Bouncy package is usable, but one question that is not clear for me is that, using this package can i store every actions of user, for example suppose user with id 100 update a record with id 20 and then may be the same user or other one update this record, can i store both of the actions, not replacing the previous document, and those documents will be searchable and i can access them?

aggregations

Hi everyone,

Can anyone show me how to get aggregations?

I tried to pass in 'aggs' into params but the response never return the aggregations

$params = [
            'query' => [
                'filtered' => [
                    'query' => $where
                ],
            ],
            'sort' => [
                ['id' => ['order' => 'desc']],
                ['rating' => ['order' => 'desc']],
                '_score'
            ],
            'highlight' => [
                'fields' => [
                    'title' => new \stdClass
                ]
            ],
            'aggs' => [
                'loc_meet_types' => [
                    'terms' => [
                        'field' => 'loc_meet_type'

                    ],
                ]
            ],
            'track_scores' => true
        ];

the response always the same no matter i add aggs or remove aggs 👍

array:7 [▼
  "per_page" => 20
  "current_page" => 1
  "next_page_url" => null
  "prev_page_url" => null
  "from" => 1
  "to" => 10
  "data" => array:10 [▼
    0 => array:40 [▶]
    1 => array:40 [▶]
    2 => array:40 [▶]
    3 => array:40 [▶]
    4 => array:40 [▶]
    5 => array:40 [▶]
    6 => array:40 [▶]
    7 => array:40 [▶]
    8 => array:40 [▶]
    9 => array:40 [▶]
  ]
]

p.s I'm using aws ElasticSearch with version 1.5.3

Transform

Can you add support to modify what data get's put into Elasticsearch, like in Elasticquent.

should not replace this original data id with ES _id

I don't think this is a good way:
$attributes = $hit['_source'];
$attributes['id'] = $hit['_id'];
and if you search like this:
Question::search(['query'=>['match'=>['_all'=>'beijing']],'_source'=>['location','title','body']]);
I originally don't want to get "id",but now I was forced got it ,in this case,it should be as a bug.

Laravel 5 Support

Thanks for your efforts to make querying Elasticsearch using Laravel a breeze. Any plans to port this to Laravel 5 support soon?

Date Range not working

After indexing i have tried to get the results for the date range, but it is not giving any results.
$params = [
'query' => [
'match_all' => []
],
'filter' => [
'range' => [
'created_at' => [
'gte' => '2017-06-18',
'lte' => '2017-06-19'
]
]
],
'size' => 10
];

Custom Analyzers

Is there a way to add custom analyzers while indexing? Like I want to use nGram tokenizer to analyze.

geo_point field type mapping

Hi all, has anyone worked with co-ordinates, I am not sure how to setup the mapping in the model for a geo_point/pin.

Any assistance greatly appreciated.

David.

Error when saving models with auto_index enabled

On line 383 in the BouncyTrait, we have the line ;
if (! $params['id']) {

This causes an error as the variable 'id' does not exist when saving a new model. A simple fix for this would be to change this to;
if (! isset($params['id'])) {

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.