Improvements to Search #178

Closed
codeconsole opened this Issue Dec 3, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@codeconsole
Contributor

codeconsole commented Dec 3, 2012

Currently Documents are added as follows:

def response = index.add {
    document(id: "1234", locale: US, rank: 3) {
        title text: "Big bad wolf", locale: ENGLISH 
        published date: new Date()
        numberOfCopies number: 35
        summary html: "<p>super story</p>", locale: ENGLISH
        description text: "a book for children"
        category atom: "children"
        keyword text: "wolf"
        keyword text: "red hook"
    }
}

We need the ability to add List properties

List<String> keywords = ['wolf', 'red hook']

def response = index.add {
    document(id: "1234", locale: US, rank: 3) {
        title text: "Big bad wolf", locale: ENGLISH 
        published date: new Date()
        numberOfCopies number: 35
        summary html: "<p>super story</p>", locale: ENGLISH
        description text: "a book for children"
        category atom: "children"
        keyword text: keywords
    }
}

Note: type doesn't matter... It could also be keyword could also be an atom

@ghost ghost assigned musketyr Dec 3, 2012

@musketyr musketyr closed this in c35a130 Dec 3, 2012

@glaforge

This comment has been minimized.

Show comment
Hide comment
@glaforge

glaforge Dec 4, 2012

Contributor

We're missing the documentation update!!!!

Contributor

glaforge commented Dec 4, 2012

We're missing the documentation update!!!!

@glaforge glaforge reopened this Dec 4, 2012

@musketyr musketyr closed this in b62268a Dec 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment