Grails in Action by Glen Smith Peter Ledbrook

Grails in Action by Glen Smith Peter Ledbrook

Author:Glen Smith, Peter Ledbrook
Language: eng
Format: mobi
Publisher: Manning Publications
Published: 2010-05-11T14:14:11.588000+00:00

static searchable = true

...

}

class Post {

static searchable = true

...

}

When a domain class is marked searchable, the plugin indexes its primitive fields (strings, dates, numbers, and collections of those). Later on, we’ll customize which fields get indexed, but for now we’ll stick with the defaults.

That’s it—your basic search capability is implemented. If we now startup Hubbub, we can use the provided Searchable page to search our index. Open http://localhost:8080/hubbub/searchable and take it for a spin, as demonstrated in figure 8.8.

Figure 8.8. The default Searchable interface is pretty usable from the get-go.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Web Analytics