Git Product home page Git Product logo

laravel-elasticsearch's People

Contributors

alasdairmackenzie avatar bnagydeveloper avatar danjohnson95 avatar dependabot[bot] avatar jaspargupta avatar jeffreydevreede avatar jmosul avatar lenssoft avatar robbytaylor avatar samc05 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-elasticsearch's Issues

Host configuration key

The configuration key for the ES hosts is currently host

The host config value is then exploded and assigned to a variable called $hosts.

Could we first check for a hosts config value before falling back to host to maintain backward compatibility?

Geo Distance Ordering doesn't work as expected

The geo distance order creates the following parse exception with the sort in the current format but it should be according to the documentation.

Error message

{
  "error": {
     "root_cause": [
       {
         "type": "parse_exception",
          "reason": "illegal latitude value [269.1829025745392] for [GeoDistanceSort] for field [object.location.coordinates]."
       }
     ]
  }
}

Current JSON format

{
  "sort": [
      {
        "_geo_distance": {
          "object.location.coordinates": [
            "51.5357244",
            "-0.08530299999999999"
	   ],
          "order": "asc",
          "unit": "km",
          "distance_type": "plane"
        }
      }
    ]
}

Indexable concern / trait

Would it be useful to have an Indexable for Eloquent models to use?

This trait could supply these helpful methods:

  • getElasticsearchEloquentBuilder()
  • getElasticsearchQueryBuilder()
  • updateIndex()
  • addToIndex()
  • removeFromIndex()

The first two would simplify the setup process as described in the readme. The last three would create a simple interface for client code to index models and remove duplication of indexing logic in client code.

Missing command or not up to date readme?

When I try and use the command make:mapping it isn't there. I also can't find it anywhere in the code, is this some deprecated functionality or whats going on here?

If anyone could help me out get started using this package it would be much appreciated, 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.