|
Peyman Faratin
2011-11-16, 14:12
Bill Mitchell
2011-11-16, 14:37
Federico Fissore
2011-11-16, 14:53
Shashi Kant
2011-11-16, 15:36
Yonik Seeley
2011-11-16, 15:41
Peter Karich
2011-11-16, 18:36
Jason Rutherglen
2011-11-16, 19:12
Peter Karich
2011-11-16, 20:35
Jason Rutherglen
2011-11-16, 21:15
Chris Hostetter
2011-11-16, 21:18
Simon Willnauer
2011-11-17, 08:24
Peter Karich
2011-11-17, 09:25
Simon Willnauer
2011-11-17, 19:53
Yonik Seeley
2011-11-17, 20:03
Petite Abeille
2011-11-17, 20:09
Simon Willnauer
2011-11-17, 20:15
Uwe Schindler
2011-11-17, 20:18
Yonik Seeley
2011-11-17, 20:21
Mark Harwood
2011-11-17, 20:40
Michael McCandless
2011-11-17, 20:44
Yonik Seeley
2011-11-17, 20:53
Yonik Seeley
2011-11-17, 20:59
Mark Harwood
2011-11-17, 21:20
Chris Hostetter
2011-11-17, 21:57
Peter Karich
2011-11-17, 23:11
Mark Miller
2011-11-18, 00:45
Lukáš Vlček
2011-11-18, 06:01
Peter Karich
2011-11-18, 07:47
Peyman Faratin
2011-11-18, 18:28
|
-
ElasticSearchPeyman Faratin 2011-11-16, 14:12
Hi
A client is considering moving from Lucene to ElasticSearch. What is the community's opinion on ES? thank you Peyman ---------------------------------------------------------------------
-
Re: ElasticSearchBill Mitchell 2011-11-16, 14:37
Under the covers, ElasticSearch contains mutliple lucene indexes -- so the
full expressiveness of lucene queries are translatable to ElasticSearch -- but the benefit of using ES as an abstraction layer to give sharded searches is something attractive enough that we're looking at it too. ;) We typically see fairly large lucene index over time, and having ElasticSearch to 'purge' sets of data, but still get federated searches is very very attractive. Perhaps a discussion of moving from SOLR to ElasticSearch would be a more fair comparison. regards, Bill On Wed, Nov 16, 2011 at 9:12 AM, Peyman Faratin <[EMAIL PROTECTED]>wrote: > Hi > > A client is considering moving from Lucene to ElasticSearch. What is the > community's opinion on ES? > > thank you > > Peyman > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-
Re: ElasticSearchFederico Fissore 2011-11-16, 14:53
Peyman Faratin, il 16/11/2011 15:12, ha scritto:
> Hi > > A client is considering moving from Lucene to ElasticSearch. What is the community's opinion on ES? > > thank you we have recently compared ES to Solr to estimate the effort of evolving our search infrastructure (it was game like: two teams tried to "sell" each software to the other one) the ES team in the end has found it good as a storage but difficult to extend for a lucene expert. the Solr one provided some extension examples and argued that raw lucene API access was easier. Solr was "sold" Hope it's clear how relative this analysis was WRT to the quality of the teams and the time they had for the evaluation, but we are extending solr ATM, so we hope not to have missed the point completely regards federico ---------------------------------------------------------------------
-
Re: ElasticSearchShashi Kant 2011-11-16, 15:36
I had posted this earlier on this list, hope this provides some answers
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/ On Wed, Nov 16, 2011 at 9:53 AM, Federico Fissore <[EMAIL PROTECTED]>wrote: > Peyman Faratin, il 16/11/2011 15:12, ha scritto: > > Hi >> >> A client is considering moving from Lucene to ElasticSearch. What is the >> community's opinion on ES? >> >> thank you >> > > > we have recently compared ES to Solr to estimate the effort of evolving > our search infrastructure (it was game like: two teams tried to "sell" each > software to the other one) > > the ES team in the end has found it good as a storage but difficult to > extend for a lucene expert. the Solr one provided some extension examples > and argued that raw lucene API access was easier. Solr was "sold" > > Hope it's clear how relative this analysis was WRT to the quality of the > teams and the time they had for the evaluation, but we are extending solr > ATM, so we hope not to have missed the point completely > > regards > > federico > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.**apache.org<[EMAIL PROTECTED]> > For additional commands, e-mail: [EMAIL PROTECTED]he.**org<[EMAIL PROTECTED]> > >
-
Re: ElasticSearchYonik Seeley 2011-11-16, 15:41
On Wed, Nov 16, 2011 at 10:36 AM, Shashi Kant <[EMAIL PROTECTED]> wrote:
> I had posted this earlier on this list, hope this provides some answers > > http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/ Except it's an out of date comparison. We have NRT (near real time search) in Solr now. http://wiki.apache.org/solr/NearRealtimeSearch -Yonik http://www.lucidimagination.com ---------------------------------------------------------------------
-
Re: ElasticSearchPeter Karich 2011-11-16, 18:36
Hi,
its not really fair to compare NRT of Solr to ElasticSearch. ElasticSearch provides NRT for distributed indices as well... also when doing heavy indexing Solr lacks real NRT. The only main disadvantages of ElasticSearch are: * only one (main) committer * no autowarming > the ES team in the end has found it good as a storage but difficult to extend for a lucene expert. The nice thing with ES is that you can e.g. create lucene queries with even high complexity as ES supports lucene-like query nesting via JSON. Also when implementing server side stuff you can take advantage of full lucene power. Ah, before I forgot it: it is very important to test the software yourself. Do not trust me or anybody else :), also the software should fit to your environment, requirements + team! Regards, Peter. PS: here is my different comparison: http://karussell.wordpress.com/2011/05/12/elasticsearch-vs-solr-lucene/ > On Wed, Nov 16, 2011 at 10:36 AM, Shashi Kant <[EMAIL PROTECTED]> wrote: >> I had posted this earlier on this list, hope this provides some answers >> >> http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/ > Except it's an out of date comparison. > We have NRT (near real time search) in Solr now. > > http://wiki.apache.org/solr/NearRealtimeSearch > > -Yonik > http://www.lucidimagination.com -- http://jetsli.de news reader for geeks ---------------------------------------------------------------------
-
Re: ElasticSearchJason Rutherglen 2011-11-16, 19:12
> even high complexity as ES supports lucene-like query nesting via JSON
That sounds interesting. Where is it described in the ES docs? Thanks. On Wed, Nov 16, 2011 at 1:36 PM, Peter Karich <[EMAIL PROTECTED]> wrote: > Hi, > > its not really fair to compare NRT of Solr to ElasticSearch. > ElasticSearch provides NRT for distributed indices as well... also when > doing heavy indexing Solr lacks real NRT. > > The only main disadvantages of ElasticSearch are: > * only one (main) committer > * no autowarming > > >> the ES team in the end has found it good as a storage but difficult to > extend for a lucene expert. > > The nice thing with ES is that you can e.g. create lucene queries with > even high complexity as ES supports lucene-like query nesting via JSON. > Also when implementing server side stuff you can take advantage of full > lucene power. > > Ah, before I forgot it: it is very important to test the software > yourself. Do not trust me or anybody else :), also the software should > fit to your environment, requirements + team! > > Regards, > Peter. > > > PS: here is my different comparison: > http://karussell.wordpress.com/2011/05/12/elasticsearch-vs-solr-lucene/ > > >> On Wed, Nov 16, 2011 at 10:36 AM, Shashi Kant <[EMAIL PROTECTED]> wrote: >>> I had posted this earlier on this list, hope this provides some answers >>> >>> http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/ >> Except it's an out of date comparison. >> We have NRT (near real time search) in Solr now. >> >> http://wiki.apache.org/solr/NearRealtimeSearch >> >> -Yonik >> http://www.lucidimagination.com > > > -- > http://jetsli.de news reader for geeks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------
-
Re: ElasticSearchPeter Karich 2011-11-16, 20:35
>> even high complexity as ES supports lucene-like query nesting via JSON > That sounds interesting. Where is it described in the ES docs? Thanks. "Think of the Query DSL as an AST of queries" http://www.elasticsearch.org/guide/reference/query-dsl/ For further info ask on ES mailing list. Regards, Peter. -- http://jetsli.de news reader for geeks ---------------------------------------------------------------------
-
Re: ElasticSearchJason Rutherglen 2011-11-16, 21:15
The docs are slim on examples.
On Wed, Nov 16, 2011 at 3:35 PM, Peter Karich <[EMAIL PROTECTED]> wrote: > >>> even high complexity as ES supports lucene-like query nesting via JSON >> That sounds interesting. Where is it described in the ES docs? Thanks. > > "Think of the Query DSL as an AST of queries" > http://www.elasticsearch.org/guide/reference/query-dsl/ > > For further info ask on ES mailing list. > > Regards, > Peter. > > -- > http://jetsli.de news reader for geeks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------
-
Re: ElasticSearchChris Hostetter 2011-11-16, 21:18
: "Think of the Query DSL as an AST of queries" : http://www.elasticsearch.org/guide/reference/query-dsl/ I'm not familiar with ES, but FWIW: based on that one page the "Query DSL" doesn't really sound much more powerful then what you can do with nested queries, local params, and param refs using the various Solr QParsers. Here's a (somewhat contrived) example from my Apachecon talk last week... ?q={!boost b=div(popularity,price) v=$qq} &qq={!dismax qf=desc^2,review}cheap &bq={!lucene df=keywords}lucene solr java &fq={!geofilt sfield=location pt=10.312,-20.556 d=3.5} &fq={!term f=$ff v=$vv}&ff=keywords&vv=solr &sort=query(keywords:lame) asc, score desc https://people.apache.org/~hossman/apachecon2011/ -Hoss ---------------------------------------------------------------------
-
Re: ElasticSearchSimon Willnauer 2011-11-17, 08:24
On Wed, Nov 16, 2011 at 10:18 PM, Chris Hostetter
<[EMAIL PROTECTED]> wrote: > > : "Think of the Query DSL as an AST of queries" > : http://www.elasticsearch.org/guide/reference/query-dsl/ > > I'm not familiar with ES, but FWIW: based on that one page the "Query DSL" > doesn't really sound much more powerful then what you can do with nested > queries, local params, and param refs using the various Solr QParsers. > > Here's a (somewhat contrived) example from my Apachecon talk last week... > > ?q={!boost b=div(popularity,price) v=$qq} > &qq={!dismax qf=desc^2,review}cheap > &bq={!lucene df=keywords}lucene solr java > &fq={!geofilt sfield=location pt=10.312,-20.556 d=3.5} > &fq={!term f=$ff v=$vv}&ff=keywords&vv=solr > &sort=query(keywords:lame) asc, score desc > I agree, one big difference here is that I might spend 2h reading & finding documentation to figure out what that does :D simon > https://people.apache.org/~hossman/apachecon2011/ > > -Hoss > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------
-
Re: ElasticSearchPeter Karich 2011-11-17, 09:25
>> : "Think of the Query DSL as an AST of queries" >> : http://www.elasticsearch.org/guide/reference/query-dsl/ >> >> I'm not familiar with ES, but FWIW: based on that one page the "Query DSL" >> doesn't really sound much more powerful then what you can do with nested >> queries, local params, and param refs using the various Solr QParsers. >> >> Here's a (somewhat contrived) example from my Apachecon talk last week... >> >> ?q={!boost b=div(popularity,price) v=$qq} >> &qq={!dismax qf=desc^2,review}cheap >> &bq={!lucene df=keywords}lucene solr java >> &fq={!geofilt sfield=location pt=10.312,-20.556 d=3.5} >> &fq={!term f=$ff v=$vv}&ff=keywords&vv=solr >> &sort=query(keywords:lame) asc, score desc >> > I agree, one big difference here is that I might spend 2h reading & > finding documentation to figure out what that does :D > > simon Did you mean the ElasticSearch or the Solr part ;) !! ;) Peter. -- http://jetsli.de news reader for geeks ---------------------------------------------------------------------
-
Re: ElasticSearchSimon Willnauer 2011-11-17, 19:53
On Thu, Nov 17, 2011 at 9:25 AM, Peter Karich <[EMAIL PROTECTED]> wrote:
> >>> : "Think of the Query DSL as an AST of queries" >>> : http://www.elasticsearch.org/guide/reference/query-dsl/ >>> >>> I'm not familiar with ES, but FWIW: based on that one page the "Query DSL" >>> doesn't really sound much more powerful then what you can do with nested >>> queries, local params, and param refs using the various Solr QParsers. >>> >>> Here's a (somewhat contrived) example from my Apachecon talk last week... >>> >>> ?q={!boost b=div(popularity,price) v=$qq} >>> &qq={!dismax qf=desc^2,review}cheap >>> &bq={!lucene df=keywords}lucene solr java >>> &fq={!geofilt sfield=location pt=10.312,-20.556 d=3.5} >>> &fq={!term f=$ff v=$vv}&ff=keywords&vv=solr >>> &sort=query(keywords:lame) asc, score desc >>> >> I agree, one big difference here is that I might spend 2h reading & >> finding documentation to figure out what that does :D >> >> simon > > Did you mean the ElasticSearch or the Solr part ;) !! ;) dude, look at this query... its insane isn't it :) simon > > Peter. > > -- > http://jetsli.de news reader for geeks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------
-
Re: ElasticSearchYonik Seeley 2011-11-17, 20:03
On Thu, Nov 17, 2011 at 2:53 PM, Simon Willnauer
<[EMAIL PROTECTED]> wrote: > dude, look at this query... its insane isn't it :) Sorry... what's the equivalent you'd like instead? Or if you're just unjustifiably bitching about Solr again, maybe I should take a stroll through Lucene land and bitch about incomprehensible code, APIs that are increasingly hard to use, APIs that keep changing on a whim w/o regard to existing users, etc. Your attitude is getting tiring. -Yonik http://www.lucidimagination.com ---------------------------------------------------------------------
-
Re: ElasticSearchPetite Abeille 2011-11-17, 20:09
On Nov 17, 2011, at 9:03 PM, Yonik Seeley wrote: >> dude, look at this query... its insane isn't it :) > > Sorry... what's the equivalent you'd like instead? > Or if you're just unjustifiably bitching about Solr again, maybe I > should take a stroll through Lucene land and bitch about > incomprehensible code, APIs that are increasingly hard to use, APIs > that keep changing on a whim w/o regard to existing users, etc. Your > attitude is getting tiring. Ohhh... touchy, touchy :) One the other hand, since this project has joined Apache, it really has gone downhill... ah!... take that Lucene! :P ---------------------------------------------------------------------
-
Re: ElasticSearchSimon Willnauer 2011-11-17, 20:15
On Thu, Nov 17, 2011 at 8:03 PM, Yonik Seeley
<[EMAIL PROTECTED]> wrote: > On Thu, Nov 17, 2011 at 2:53 PM, Simon Willnauer > <[EMAIL PROTECTED]> wrote: >> dude, look at this query... its insane isn't it :) > > Sorry... what's the equivalent you'd like instead? oh, I think there are many ways to design a DSL for querying.. something I can read and understand without reading documentation maybe? :) > Or if you're just unjustifiably bitching about Solr again, maybe I > should take a stroll through Lucene land and bitch about > incomprehensible code, APIs that are increasingly hard to use, APIs > that keep changing on a whim w/o regard to existing users, etc. I think you should do it. I mean this can only take us further! Ask for 400% and get 100% ....more than nothing. Sitting there thinking the APIs suck doesn't move us anywhere. Its open source. please help getting the APIs straight! > Your attitude is getting tiring. sorry about that... I think its not my attitude, I am not against solr or anything but if you look at the differences we should try to improve where the biggest gaps are visible instead of keeping quiet. simon > > -Yonik > http://www.lucidimagination.com > ---------------------------------------------------------------------
-
RE: ElasticSearchUwe Schindler 2011-11-17, 20:18
> Or if you're just unjustifiably bitching about Solr again
Sorry, this query is really ununderstandable. Those complex queries should have a meaningful language, e.g. a JSON object structure (like XMLQueryParser, but instead JSON). Those queries are never entered by users only by machines, why not make them easy interpretable and produceable by using structured objects and not ugly string-concatenations - leads to security bugs like SQL injection. > maybe I should take a > stroll through Lucene land and bitch about incomprehensible code, APIs that > are increasingly hard to use, APIs that keep changing on a whim w/o regard to > existing users, etc. Your attitude is getting tiring. This only affects bulk postings. In my opinion, the trunk APIs are much easier to understand than the broken 3.x API. Uwe ---------------------------------------------------------------------
-
Re: ElasticSearchYonik Seeley 2011-11-17, 20:21
On Thu, Nov 17, 2011 at 3:18 PM, Uwe Schindler <[EMAIL PROTECTED]> wrote:
> Sorry, this query is really ununderstandable. Those complex queries should > have a meaningful language, e.g. a JSON object structure There are upsides and downsides to that. A big JSON object graph would be easier to *read* but certainly not easier to write (much more nesting). These main Solr APIs are based around HTTP parameters... the upside being you can add another parameter w/o worrying about nesting it correctly. Like simply adding another filter for example: fq=instock:true -Yonik http://www.lucidimagination.com ---------------------------------------------------------------------
-
Re: ElasticSearchMark Harwood 2011-11-17, 20:40
I don't think of queries as inherently flat in the way HTTP request parameters are with their name=value pairings.
JSON or XML can reflect more closely the hierarchy in the underlying Lucene query objects. For me using a "flat" query interface feels a bit like when you start off trying to manage your application config in ".properties" files and quickly hit the limitations of their expressiveness. It's fine for simple things but complexity soon overwhelms. As well as hierarchical syntax it's worth considering the role a formal query schema has to play. The XMLQueryParser has a set of DTDs that currently serve to generate HTML documentation but also could conceivably be used by tooling to drive query construction. "Runnable documentation" always feels like a useful combo. Cheers Mark On 17 Nov 2011, at 20:21, Yonik Seeley wrote: > On Thu, Nov 17, 2011 at 3:18 PM, Uwe Schindler <[EMAIL PROTECTED]> wrote: >> Sorry, this query is really ununderstandable. Those complex queries should >> have a meaningful language, e.g. a JSON object structure > > There are upsides and downsides to that. A big JSON object graph > would be easier to *read* but certainly not easier to write (much more > nesting). > These main Solr APIs are based around HTTP parameters... the upside > being you can add another parameter w/o worrying about nesting it > correctly. > > Like simply adding another filter for example: > fq=instock:true > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------
-
Re: ElasticSearchMichael McCandless 2011-11-17, 20:44
Maybe someone can post the equivalent query in ElasticSearch? Then at
least we have a fair comparison of the two syntaxes, for this one (complex) query at least... Mike McCandless http://blog.mikemccandless.com On Thu, Nov 17, 2011 at 3:21 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > On Thu, Nov 17, 2011 at 3:18 PM, Uwe Schindler <[EMAIL PROTECTED]> wrote: >> Sorry, this query is really ununderstandable. Those complex queries should >> have a meaningful language, e.g. a JSON object structure > > There are upsides and downsides to that. A big JSON object graph > would be easier to *read* but certainly not easier to write (much more > nesting). > These main Solr APIs are based around HTTP parameters... the upside > being you can add another parameter w/o worrying about nesting it > correctly. > > Like simply adding another filter for example: > fq=instock:true > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---------------------------------------------------------------------
-
Re: ElasticSearchYonik Seeley 2011-11-17, 20:53
On Thu, Nov 17, 2011 at 3:40 PM, Mark Harwood <[EMAIL PROTECTED]> wrote:
> JSON or XML can reflect more closely the hierarchy in the underlying Lucene query objects. We normally use the Lucene QueryParser syntax itself for that (not HTTP parameters). Other parameters such as filters, faceting, highlighting, sorting, etc, don't normally have any hierarchy. I don't think JSON is always nicer either. How would you write this sort in JSON for example? sort=price desc, score desc A big plus to Solr's APIs is that it's relatively easy to type them in to a browser to try them out. As far as alternate query syntaxes (as opposed to alternate request syntaxes), Solr has good support for that and it would be simple to add in support for a JSON query syntax if someone wrote one. AFAIK, there's an issue open for adding the XML query syntax, but I'm not sure if it's ever had much traction. -Yonik http://www.lucidimagination.com ---------------------------------------------------------------------
-
Re: ElasticSearchYonik Seeley 2011-11-17, 20:59
On Thu, Nov 17, 2011 at 3:44 PM, Michael McCandless
<[EMAIL PROTECTED]> wrote: > Maybe someone can post the equivalent query in ElasticSearch? I don't think it's possible. Hoss threw in the kitchen sink into his "contrived' example. Here's a super simple example: JSON: { "sort" : [ { "age" : {"order" : "asc"} } ], "query" : { "term" : { "user" : "jack" } } } Solr's HTTP: q=user:jack&sort=age asc -Yonik http://www.lucidimagination.com ---------------------------------------------------------------------
-
Re: ElasticSearchMark Harwood 2011-11-17, 21:20
>
> Other parameters such as filters, faceting, highlighting, sorting, > etc, don't normally have any hierarchy. I regularly mix filters and queries inside Boolean logic. Attempts to structure data (e.g. geocoding) don't always achieve 100% coverage and so for better recall you must also resort to unstructured text as well. You end up with something like this (pseudo code)... (text:Windsor OR geoRangeFilter:xxxxx) AND text:pizza ---------------------------------------------------------------------
-
Re: ElasticSearchChris Hostetter 2011-11-17, 21:57
: > Maybe someone can post the equivalent query in ElasticSearch? : : I don't think it's possible. Hoss threw in the kitchen sink into his : "contrived' example. exactly ... i have no idea if that type of query is possible with ES, but it was not intended to be an example of a "typical" Solr query -- or even a useful query -- it was a deliberately contrived example of a complex and "deep" query structure that could be crafted using nested query params and variable refs. There's nothing stoping us from having an XML or JSON based query langauge (patches welcome!), but my point was you can already express quite a bit of complexity and nuance in Solr queries OOTB today. -Hoss ---------------------------------------------------------------------
-
Re: ElasticSearchPeter Karich 2011-11-17, 23:11
> I don't think it's possible. Eh, of course its possible (if I would understand it I would do it. no, no, just joking ;)) and yes, Solr its a shorter for some common use cases. I don't think that there is a 'best', but JSON can map 1:1 to lucene. The biggest problem with ES's syntax is that you can have super big queries where you miss the big picture or some closing bracket (probably </xml> would be better ;)) => so this makes it sometimes harder to 'parse' for humans (for bigger queries) and more chatty The biggest problem with Solr's syntax is that you need to escape here and there and you have all the different brackets and dots (e.g. for ranges, local params, term filter, ...), which makes it hard to parse for *non*-humans and sub-intelligent people IMO. An advantage is that you can put the URL into the browser with Solr, which is only possible via additional software for ES (called Elasticsearch-head). although some parameters are available as URL parameters as well in ES Regards, Peter. > On Thu, Nov 17, 2011 at 3:44 PM, Michael McCandless > <[EMAIL PROTECTED]> wrote: >> Maybe someone can post the equivalent query in ElasticSearch? > I don't think it's possible. Hoss threw in the kitchen sink into his > "contrived' example. > Here's a super simple example: > > JSON: > > { > "sort" : [ > { "age" : {"order" : "asc"} } > ], > "query" : { > "term" : { "user" : "jack" } > } > } > > Solr's HTTP: > > q=user:jack&sort=age asc > > -Yonik > http://www.lucidimagination.com > -- http://jetsli.de news reader for geeks
-
Re: ElasticSearchMark Miller 2011-11-18, 00:45
The XML query parser can map to Lucene one to one as well - hasn't seemed
to pick up enough steam to be included with Solr yet, but there has been some commotion so it's likely to go in at some point. Not enough demand yet I guess. https://issues.apache.org/jira/browse/SOLR-839 XML Query Parser Support -- - Mark http://www.lucidimagination.com On Thu, Nov 17, 2011 at 6:11 PM, Peter Karich <[EMAIL PROTECTED]> wrote: > > > > I don't think it's possible. > > Eh, of course its possible (if I would understand it I would do it. no, > no, just joking ;)) > > and yes, Solr its a shorter for some common use cases. I don't think > that there is a 'best', but JSON can map 1:1 to lucene. > > The biggest problem with ES's syntax is that you can have super big > queries where you miss the big picture or some closing bracket (probably > </xml> would be better ;)) > => so this makes it sometimes harder to 'parse' for humans (for bigger > queries) and more chatty > > The biggest problem with Solr's syntax is that you need to escape here > and there and you have all the different brackets and dots (e.g. for > ranges, local params, term filter, ...), > which makes it hard to parse for *non*-humans and sub-intelligent people > IMO. An advantage is that you can put the URL into the browser with > Solr, which is only possible via additional software for ES (called > Elasticsearch-head). although some parameters are available as URL > parameters as well in ES > > Regards, > Peter. > > > > On Thu, Nov 17, 2011 at 3:44 PM, Michael McCandless > > <[EMAIL PROTECTED]> wrote: > >> Maybe someone can post the equivalent query in ElasticSearch? > > I don't think it's possible. Hoss threw in the kitchen sink into his > > "contrived' example. > > Here's a super simple example: > > > > JSON: > > > > { > > "sort" : [ > > { "age" : {"order" : "asc"} } > > ], > > "query" : { > > "term" : { "user" : "jack" } > > } > > } > > > > Solr's HTTP: > > > > q=user:jack&sort=age asc > > > > -Yonik > > http://www.lucidimagination.com > > > > > > -- > http://jetsli.de news reader for geeks > >
-
Re: ElasticSearchLukáš Vlček 2011-11-18, 06:01
Hi Peter,
On Fri, Nov 18, 2011 at 12:11 AM, Peter Karich <[EMAIL PROTECTED]> wrote: > > > > I don't think it's possible. > > Eh, of course its possible (if I would understand it I would do it. no, > no, just joking ;)) > > and yes, Solr its a shorter for some common use cases. I don't think > that there is a 'best', but JSON can map 1:1 to lucene. > > The biggest problem with ES's syntax is that you can have super big > queries where you miss the big picture or some closing bracket (probably > </xml> would be better ;)) > => so this makes it sometimes harder to 'parse' for humans (for bigger > queries) and more chatty > > The biggest problem with Solr's syntax is that you need to escape here > and there and you have all the different brackets and dots (e.g. for > ranges, local params, term filter, ...), > which makes it hard to parse for *non*-humans and sub-intelligent people > IMO. An advantage is that you can put the URL into the browser with > Solr, which is only possible via additional software for ES (called > Elasticsearch-head). although some parameters are available as URL > parameters as well in ES > Not sure if I understood exactly what you meant here but do you know you can always use "source" URL parameter to pass in any DSL query string in ES? In other words, just take DSL query JSON and pass it as a URL parameter (mostly handy for JSONP). And there are a lot of tools that can support you here, not only ES-head, but also REST plugins for web browsers if you do not mind writing the JSON query yourself (not to mention that in many programming languages it is much easier to work with JSON then it is in Java). > > Regards, > Peter. > > > > On Thu, Nov 17, 2011 at 3:44 PM, Michael McCandless > > <[EMAIL PROTECTED]> wrote: > >> Maybe someone can post the equivalent query in ElasticSearch? > > I don't think it's possible. Hoss threw in the kitchen sink into his > > "contrived' example. > > Here's a super simple example: > > > > JSON: > > > > { > > "sort" : [ > > { "age" : {"order" : "asc"} } > > ], > > "query" : { > > "term" : { "user" : "jack" } > > } > > } > > > > Solr's HTTP: > > > > q=user:jack&sort=age asc > > > > -Yonik > > http://www.lucidimagination.com > > > > > > -- > http://jetsli.de news reader for geeks > >
-
Re: ElasticSearchPeter Karich 2011-11-18, 07:47
Hi Lukáš, hi Mark
> https://issues.apache.org/jira/browse/SOLR-839 thanks for pointing me there > > although some parameters are available as URL parameters as well in ES > Not sure if I understood exactly what you meant here but do you know you > can always use "source" URL parameter to pass in any DSL query string in > ES? ah, ok. thanks > And there are a lot of tools that can support you > here, not only ES-head, but also REST plugins for web browsers yes, thats what I meant (but the point was: you need the tool) Regards, Peter. -- http://jetsli.de news reader for geeks ---------------------------------------------------------------------
-
Re: ElasticSearchPeyman Faratin 2011-11-18, 18:28
Thank you all for the feedback and your point of views.
Peyman On Nov 18, 2011, at 2:47 AM, Peter Karich wrote: > Hi Lukáš, hi Mark > >> https://issues.apache.org/jira/browse/SOLR-839 > > > thanks for pointing me there > > >>> although some parameters are available as URL parameters as well in ES > >> Not sure if I understood exactly what you meant here but do you know you >> can always use "source" URL parameter to pass in any DSL query string in >> ES? > > ah, ok. thanks > >> And there are a lot of tools that can support you >> here, not only ES-head, but also REST plugins for web browsers > > yes, thats what I meant (but the point was: you need the tool) > > Regards, > Peter. > > -- > http://jetsli.de news reader for geeks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- |