Disabling _source field

Yes, it is ... so you may want to provide a nice perl API for
Terrastore as well :wink: ... okay, that was shameless, please forgive me

haha :slight_smile:

actually, it'd be easy to repurpose Elasticsearch.pm for that. If I had time....

One thing I'm working on for Elasticsearch is a query builder, so I can transform this:

{
"keywords" : "foo bar",
"active_or_featured" : {
"or" : {
"featured" : "1",
"status" : "active"
}
},
"publish_date" : {
">=" : "2009-09-01",
"<=" : "2009-09-30",
"!=" : "2009-09-24"
},
"keyword_fields" : "text name"
}

Into this:

{
"filteredQuery" : {
"filter" : {
"bool" : {
"must" : [
{
"bool" : {
"must" : [
{
"bool" : {
"mustNot" : [
{
"term" : {
"publish_date" : "2009-09-24"
}
}
]
}
},
{
"range" : {
"publish_date" : {
"to" : "2009-09-30",
"exclude_to" : 0,
"from" : "2009-09-01",
"exclude_from" : 0
}
}
}
]
}
},
{
"bool" : {
"should" : [
{
"term" : {
"featured" : "1"
}
},
{
"term" : {
"status" : "active"
}
}
]
}
}
]
}
},
"query" : {
"field" : {
"text name" : {
"boost" : 1,
"query" : "foo bar"
}
}
}
}
}

--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.

On Thu, Mar 18, 2010 at 3:42 PM, Clinton Gormley
clinton@iannounce.co.uk wrote:

actually, it'd be easy to repurpose Elasticsearch.pm for that. If I had time....

No worries, keep up with the excellent work on your ES client :wink:

--
Sergio Bossa
http://www.linkedin.com/in/sergiob