Search code examples
elasticsearchquerydsl

Querydsl vs ES Querydsl


I have been asked to look into Querydsl. So, I've been searching on line and there appears to be two of them: one sponsored by Mysema and the other created by Elastic Search. I'm a bit confused about the differences in the functionality. Is Elastic Search's Querydsl an expansion on Querydsl? Can anyone point me to or provide an example that compares the uses of the two?

So far this is what I know:

Querydsl

  • Java Framework
  • Supports JPA, JDO, SQL, Java collections, RDF, Lucene, Hibernate Search, and MongoDB
  • Generates type-safe queries with a syntax is similar to SQL

ES Querydsl

  • Based on JSON

  • Similar to REST Query DSL

  • Query language for full-text and structured search


Solution

  • I have been using QueryDsl (Java framework) for a while. As far as I know, they are two different things.

    The QueryDSL is a framework to write type-safe queries in Java.

    While the ES Query DSL is a language based on JSON to write queries in ES.