Comments (5)
I am also looking for this I tried to add it in myself but I'm thinking the low level php library might not support it or something. Still investigating will let you know what I find out.
from elasticquent.
Was able to get it working by modifying the searchByQuery function. I am going to generalize it a bit and then I will put up a pull request.
from elasticquent.
I really don't like the way the parameters work in the searchByQuery function. $query, $aggs, $sort and $sourceFields could all be condensed into one parameter $body. That would allow for much more flexibility without having a million parameters. Then you could do stuff like highlighting without having to add another parameter to support it. If you wanted to be able to still separate things out, you could have setter functions (setQuery, setAggregations, setHighlight, setFields, setSort) that build out the one parameter you pass into searchByQuery. When I get some time I am going to go ahead and do this on my fork if anyone is interested. I need highlighting support but I don't want to add yet another parameter.
from elasticquent.
@modernmediaca, I agree. Please have a look at https://github.com/elasticquent/Elasticquent, which I have forked from @adamfairholm (I already have some of your commits there in that repository).
from elasticquent.
@razor2611 have you seen the documentation? https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html
You will need to change your query function a little to make it work.
from elasticquent.
Related Issues (20)
- creating index, put mapping and complex type storing HOT 4
- Sorting HOT 4
- Undefined index: aggregations HOT 5
- Elasticsearch wont apply not_analyzed into my mapping HOT 1
- About delete HOT 3
- Model::searchByQuery() method HOT 3
- Undefined index: aggregations
- Question about boosted fields in Multi Match Query HOT 1
- paginate unexpected behavior HOT 1
- Searching multiple types/models HOT 10
- Working with related models HOT 1
- Function putMapping - error
- Querying by multiple form fields filter
- Search Collection, not only Model HOT 2
- get aggregations as collection
- package is not working with composer - laravel HOT 3
- Call to undefined function Elasticquent\config() HOT 1
- How we can track every actions of user and not replace the stored documents?
- Failed to access when host url with username:password HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticquent.