Displaying desired properties from search results with grails compass
Posted
by ombud
on Stack Overflow
See other posts from Stack Overflow
or by ombud
Published on 2010-03-11T17:23:17Z
Indexed on
2010/03/11
17:24 UTC
Read the original article
Hit count: 434
Hi,
I've been stumped with the problem of displaying a selected set of properties returned as a result via a Compass query in grails.
I have 300 columns in my domain class and what I'd like to do is to return ONLY THOSE values I specify (around 10 - 15 properties/fields/columns). All the 300 columns have been indexed, btw.
I know I can do this using Lucene by cycling through returned hits and selectively calling a=getField(column_name), et c. My qiuestion is, how do I do the same thing using thee Compass Grails plugin ?
Any help will gratefully be appreciated.
Thanks in anticipation,
Ombud
© Stack Overflow or respective owner