Hi, this is my first post on this mailing list, Greetings from Málaga,
Spain
@shay : Congratulations, the ES approach seems very, very interesting.
A few notes :
-
We find very attractive the ability to define mappings using JSON
notation, which to my taste is lighter and easier to use XML files or
Java APIs ( we previously had worked with Lucene API ) -
In a first step of integration of ES we can not use their "distributed
capabilities", due to restrictions on the intranet which hosts our
application in production. We therefore we consider that the proposed
NodeServlet Ware plugin is a perfect choise for us. -
NodeServlet : It´s clear that deploy it can no longer access the
server on port 9200, but what happens to port 9300 ? , I ask because
during the start we see the following messages :
9:46:03 - [Perfection] Bound to address [/ 0.0.0.0:9300]
9:46:03 - [Perfection] {inet bound_address [/ 0.0.0.0:9300]}, {inet
publish_address [/ 5.157.247.64:9300]}
- Dynamic / Config Mappings : In principle we see no need to disable
dynamic mapping, we find it useful, but we also need to define our
custom mappings for certain types of data. We believe we have a problem
here, because seems that NodeServlet is not detecting our JSON config
files :
We have the following files :
/ WEB-INF/config/default-mapping.json
{
"default" : {
"date_formats" : ["yyyyMMdd", "yyyy-MM-dd", "dd-MM-yyyy",
"date_optional_time"]
}
}
/ WEB-INF/config/mappings/myindex/mytype-mapping.json
{
"mytype" : {
"properties" : {
"property1" : {
"type" : "string"
},
"property2": {
"type" : "boolean"
}
}
}
}
And here is the resulting logging :
Then we see the logging and ...
09:46:07 - [Perfection] [myindex] using dynamic[true], default mapping:
location[null] and source[{
"default" : {
}
}]
09:46:07 - [Perfection] [myindex] using [resident] field cache with
max_size [-1], expire [null]
09:46:07 - [Perfection] [myindex] Using stats.refresh_interval [1s]
09:46:07 - [Perfection] [myindex] adding mapping [mytype ], source
[{"mytype":{"dynamic_date_formats":["yyyyMMdd","yyyy-MM-dd","dd-MM-yyyy","date_optional_time"],"properties":{"property1":{"type":"string"},"property2":{"type":"string"}]
09:46:07 - [Perfection] [myindex][0] creating shard
Here I could see two problems :
- The logging about the default mappings says that there is no default
config file, but my custom date format appears when the Node is logging
the adding of a a mapping for 'mytype' - The logging make me suppose that the generated mapping related with
'mytype' is provided by the dynamic.mapping feature, correct ? , Because
I´ve defined that "property2" field as boolean and seems it´s not detected.
- We are using Eclipse Indigo + Tomcat 6.0 with WTP plugin , perhaps we
are inside a "configuration madness"?
Thanks in advance for all,
& Have a nice day
--
Antonio Miguel Fernández RodrÃguez
Jaraxa Software, SL
www.jaraxa.com