The response from the server looks completely correct. Under the Browser
tab, if I type the letters k,i,m,c,h,y then I get back the single document:
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"twitter","_type":"tweet","_id":"1","_version":1,"_score":1.0,
"_source" :
{
user : "kimchy",
message : "first tweet by me"
}}]}}
There are still no search results shown in the browser window
Anytime I enter an incorrect character, say kimchyx, I get:
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":}}
In the browser window I now see the following:
Searched 5 of 5 shards. 0 hits. 0.001 seconds
_index
_type
_id
▼
_score
Similarly, under the Structured Search tab, the Network shows correct
results being returned:
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"twitter","_type":"tweet","_id":"1","_score":1.0,
"_source" :
{
user : "kimchy",
message : "first tweet by me"
}}]}}
However, the UI only shows: Searching...
I hope this helps. Thank you.
On Thursday, February 14, 2013 7:15:32 PM UTC-5, mobz wrote:
I have attempted to reproduce the problem using a new cluster and a the
data you specify with es 0.20.4 and can not (it works as expected). It
looks from above like there might be a problem with the json that es is
producing? In chrome, can you open the 'network' debugging tab and copy the
request / response to the request to
http://localhost:9200/twitter/_search that is causing the error.
On Thursday, 14 February 2013 15:30:39 UTC+11, Cayman wrote:
In FFox I see the following:
- when I used the Structured Query I see this error
[23:18:25.130] POST http://localhost:9200/twitter/_search [HTTP/1.1 200
OK 2ms]
[23:18:25.079] SyntaxError: JSON.parse: expected property name or '}' @
http://localhost:9200/_plugin/head/lib/jsacx/src/jquery.js:553
Here is my line 553:
Line 551: // Attempt to parse using the native JSON parser first
Line 552: if ( window.JSON && window.JSON.parse ) {
Line 553: return window.JSON.parse( data );
Line 554: }
- when I use the Browser tab I press Refresh and I see this
[23:13:49.455] POST http://localhost:9200/_all/_search [HTTP/1.1 200 OK
2ms]
[23:13:49.404] ({'XHR Error':"parsererror", message:(new
SyntaxError("JSON.parse: expected property name or '}'", "
http://localhost:9200/_plugin/head/lib/jsacx/src/jquery.js", 553))})
There is a hyperlink for core.js:83. If I display this line I see:
console.log({ "XHR Error": type, "message": message }); (looks ok to me) Here is the complete function from core.js
request: function(params) {
return $.ajax(acx.extend({
url: this.config.base_uri + params.path,
dataType: "json",
error: function(xhr, type, message) {
if("console" in window) {
console.log({ "XHR Error": type, "message": message });
}
}
}, params));
},
Similarly, if I don't use the plugin, I see the following error (this
time in Safari) on the Browser tab
Object
XHR Error: "parsererror"
message: Error
line: 553
message: "JSON Parse error: Expected '}'"
sourceURL:
"file:///Developer/Devtools/Elasticsearch-head/elasticsearch-head/lib/jsacx/src/jquery.js"
stack: "parse@[native
code]↵parseJSON@file:///Developer/Devtools/Elasticsearch-head/elasticsearch-head/lib/jsacx/src/jquery.js:553↵ajaxConvert@file:///Developer/Devtools/Elasticsearch-head/elasticsearch-head/lib/jsacx/src/jquery.js:7549↵done@file:///Developer/Devtools/Elasticsearch-head/elasticsearch-head/lib/jsacx/src/jquery.js:7101↵callback@file:///Developer/Devtools/Elasticsearch-head/elasticsearch-head/lib/jsacx/src/jquery.js:7907↵[native
code]"
proto: Error
proto: Object
Thank you
On Wednesday, February 13, 2013 11:08:08 PM UTC-5, mobz wrote:
Hi, It looks like head is not able to show results for some reason -
possibly a javascript error. Can you let me know if there are any errors in
the javascript console.
-B
On Thursday, 14 February 2013 14:18:54 UTC+11, Cayman wrote:
Hi, I am new to ES and ES-head. I just downloaded ES 0.20.4. I just
installed ES-head, both as a plugin and manual download. I created a new
index called twitter with type tweet, and inserted one document: { user :
"kimchy", message : "first tweet by me" }. I can search for and return
this document using curl.
http://localhost:9200/_plugin/head/ shows me the index. The Browser
tab shows the correct indices (twitter), types(tweet) and Fields(message
and user). However, I am unable to get any search results to show up. If I
click on user and type in the field kimchy I don't see any results.
However, if I type in something other than kimchy, say the letter x, then I
immediately see: "Searched 5 of 5 shards, 0 hits, 0.001 seconds"
Underneath that I see "_index _type _id _score" as if it were a table.
Similarly, if I use the Structured Query+ tab, I enter for must:
tweet.user and for term: kimchy. After I press the Search button, I see
"Searching..." but no results.
I have installed ES-head both from plugin and manually, both with the
same results. I am using os x lion and I have tried safari, ffox, chrome,
all with the same results.
Thank you.
--
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.