Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to Search #178

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

Improvements to Search #178

codeconsole opened this issue Dec 3, 2012 · 1 comment
Assignees

Comments

@codeconsole
Copy link
Contributor

@codeconsole 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
Copy link
Contributor

@glaforge 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.