search for the holy grail (and test it once found)

127
© 2013 SpringOne 2GX. All rights reserved. Do not distribute without permission. Searching For the Grail By Baruch Sadogursky

Upload: spring-io

Post on 18-Nov-2014

611 views

Category:

Technology


5 download

DESCRIPTION

Speaker: Baruch Sadogursky Grails is awesome! Agreed? Good! Now, search and testing facilities have become such a basic commodity in applications that it's almost taken for granted. But as a Grails developer you face limitations and concerns: is the library well maintained? Does it fit the framework's paradigm? After nominating the winners, we’ll show you the advantages of our tools of choice and take a deep dive into the juicy details. This talk will provide short overviews and comparisons in the search for 2 pieces of the holy grail - good search and testing facilities.

TRANSCRIPT

© 2013 SpringOne 2GX. All rights reserved. Do not distribute without permission.

Searching For the Grail

By Baruch Sadogursky

Requirements ___________

Requirements

–Download binaries

___________

Requirements

–Download binaries

–Web application

___________

Requirements

–Download binaries

–Web application

–REST API

___________

Requirements

–Download binaries

–Web application

–REST API

–Backend services

___________

Requirements ___________

Requirements

–Rapid Application

Development

___________

Requirements

–Rapid Application

Development

–Flexible schema

___________

Requirements

–Rapid Application

Development

–Flexible schema

–Java Background

___________

Requirements

–Rapid Application

Development

–Flexible schema

–Java Background

–Stateless

___________

Why don’t you just use...?

Framework Why not?

________________

Why don’t you just use...?

Framework Why not?

Angular.js Ember.js, ж.js Maturity

________________

-

Why don’t you just use...?

Framework Why not?

Angular.js Ember.js, ж.js Maturity

Wicket State

________________

-

Why don’t you just use...?

Framework Why not?

Angular.js Ember.js, ж.js Maturity

Wicket State

JSF No comment

________________

-

Why don’t you just use...?

Framework Why not?

Angular.js Ember.js, ж.js Maturity

Wicket State

JSF No comment

Non-java Not java bg

________________

-

Sphin

x T

echnolo

gie

s In

c.

http

://ww

w.flic

kr.c

om

/photo

s/8

9869

792

@N

00/

http://compass-project.org

static searchable = true

static searchable = {

except = ['field1']

field2 boost: 2.0

}

def result =

Domain.search('query')

def result =

searchableService.search('query')

http

://ww

w.flic

kr.c

om

/photo

s/e

lwillo

/

ww

w.a

pache.o

rg

http

://luce

ne

.ap

ach

e.o

rg/s

olr

grails start-solr

&

grails stop-solr

static enableSolrSearch = true

static solrAutoIndex = true

def result =

Domain.searchSolr('query')

def result =

solrService.search('query')

...But wait a minute

-GASP-

http

://ww

w.flic

kr.c

om

/photo

s/lo

uis

a_catlo

ver/

I'm not dead yet!

Using Solr?

Using Grails?

Contribute!

(yay)

http

://ww

w.e

lastic

searc

h.o

rg

elasticSearch {

client.mode = 'local'

}

elasticSearch {

client.mode = 'transport'

}

static searchable = true

static searchable = {

}

Looks familiar?

http://www.flickr.com/photos/finsam/

Call to arms Hibernate

GORM

github.com/noamt/elasticsearch-gorm-plugin