Example
curl -XGET 'http://localhost:9200/testolav/node/_search' -d'
{
"from": 0,
"size": 0,
"fields": [],
"query": {
"bool": {
"must": [
{
"term": {
"parent": "%2Ftestolav"
}
}
]
}
}
}'
{"took":2,"timed_out":false,"_shards":{"total":2,"successful":2,"failed":0},"hits":{"total":2,"max_score":3.014903,"hits":[]}}
_index
_type
_id
_score
size
type
name
parent
date_modified
testolav
node
%2Ftestolav%2F%E2%80%93
3.014903
0 bytes
file
–
%2Ftestolav
2013-01-29 16:07
testolav
node
%2Ftestolav%2Ftruls
3.014903
FOLDER
truls
%2Ftestolav
2013-01-29 16:10
Second query:
curl -XGET 'http://localhost:9200/testolav/node/_search' -d'
{
"from": 0,
"size": 0,
"fields": [],
"query": {
"bool": {
"must": [
{
"term": {
"parent": "%2Ftestolav"
}
}
]
}
}
}'
{"took":3,"timed_out":false,"_shards":{"total":2,"successful":2,"failed":0},"hits":{"total":3,"max_score":3.74084,"hits":[]}}
_index
_type
_id
_score
size
type
name
parent
date_modified
testolav
node
%2Ftestolav%2FMusic
3.74084
folder
Music
%2Ftestolav
2013-01-21 13:50
testolav
node
%2Ftestolav%2F%E2%80%93
3.014903
0 bytes
file
–
%2Ftestolav
2013-01-29 16:07
testolav
node
%2Ftestolav%2Ftruls
3.014903
FOLDER
truls
%2Ftestolav
2013-01-29 16:10
Is this supposed to happen? Is there a way to return a consistent search
result?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.