New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlighting broken when query is on _all
field or with prefixes
#148
Comments
hey, found the reason for this, working on a fix. Is there a reason there are two issues for this? |
Highlighting broken when query is on |
rmuir
pushed a commit
to rmuir/elasticsearch
that referenced
this issue
Nov 8, 2015
We need to define `<elasticsearch.version>` in `pom.xml` as we now inherit from elasticsearch project parent pom. But `elasticsearch.version` is set by default to `project.version` which is here `3.0.0-SNAPSHOT` for the mapper project. Related to elastic#148
rmuir
pushed a commit
to rmuir/elasticsearch
that referenced
this issue
Nov 8, 2015
Fix compiling issues. Also fix test issues. Need now to move old integration tests to RESTIT Closes elastic#148.
williamrandolph
pushed a commit
to williamrandolph/elasticsearch
that referenced
this issue
Jun 4, 2020
in case the task id information is not present, log existing props for better debugging... relates elastic#148
williamrandolph
pushed a commit
to williamrandolph/elasticsearch
that referenced
this issue
Jun 4, 2020
williamrandolph
pushed a commit
to williamrandolph/elasticsearch
that referenced
this issue
Jun 4, 2020
mindw
pushed a commit
to mindw/elasticsearch
that referenced
this issue
Sep 5, 2022
…lastic#148) add stack onto recorder metric name * add stack onto recorder metric name Approved-by: Gideon Avida
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hiya
Load this data:
Then try these queries:
TERM QUERY: WORKS
PREFIX QUERY: BROKEN
QUERY STRING ON FIELD: WORKS
QUERY STRING ON ALL: BROKEN
curl -XGET 'http://127.0.0.2:9200/_all/_search' -d '
{
"query" : {
"query_string" : {
"query" : "foo"
}
},
"highlight" : {
"fields" : {
"_all" : {}
}
},
"size" : 2
}
'
# {
# "hits" : {
# "hits" : [
# {
# "_source" : {
# "num" : "3",
# "text" : "foo",
# "date" : "2010-04-3 00:00:00"
# },
# "_index" : "es_test_1",
# "_id" : "2",
# "_type" : "type_2",
# "highlight" : {
# "_all" : []
# }
# },
# {
# "_source" : {
# "num" : "6",
# "text" : "foo bar",
# "date" : "2010-04-6 00:00:00"
# },
# "_index" : "es_test_1",
# "_id" : "5",
# "_type" : "type_1",
# "highlight" : {
# "_all" : []
# }
# }
# ],
# "total" : 16
# },
# "_shards" : {
# "failed" : 0,
# "successful" : 10,
# "total" : 10
# }
# }
The text was updated successfully, but these errors were encountered: