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

Query builder for Full Text Search #183

Closed
codeconsole opened this issue Dec 7, 2012 · 4 comments
Closed

Query builder for Full Text Search #183

codeconsole opened this issue Dec 7, 2012 · 4 comments

Comments

@codeconsole
Copy link
Contributor

@codeconsole codeconsole commented Dec 7, 2012

https://developers.google.com/appengine/docs/java/search/overview#Simple_Queries

search.execute {
    select author, subject, summary from User limit 100
}

from 'User' is search.index("User")
author, subject, summary are search.index("User").setFieldsToReturn("author", "subject", "summary")
limit is search.index("User").setLimit(limit)

// select the full document with all its properties
select all
// return just the ids of the documents matched by the query
select ids
// return one single entity if the query really returns one single result
select single
// return the count of entities matched by the query
select count
// return just a few properties 
select name, age

// from an index
from index

where EXPRESSION

// you can use "and" instead of "where" to add more where clauses

// ascending sorting
sort asc  by propertyName
// descending sorting
sort desc by propertyName

// limit to only 10 results
limit 10
// return the results starting from a certain offset
offset 100

// cursor handling
startAt cursorVariable
startAt cursorWebSafeStringRepresentation
endAt cursorVariable
endAt cursorWebSafeStringRepresentation
@glaforge
Copy link
Contributor

@glaforge glaforge commented Dec 7, 2012

This would indeed be nice to support that syntax, in the same vein as the Gaelyk datastore queries syntax.
You're planning on implementing that?

@codeconsole
Copy link
Contributor Author

@codeconsole codeconsole commented Dec 9, 2012

Still conceptualizing at this point... :)

@musketyr
Copy link
Contributor

@musketyr musketyr commented Mar 14, 2013

👍 the search API is so far so bad

@musketyr
Copy link
Contributor

@musketyr musketyr commented Mar 18, 2013

we should also consider adding search expressions such as distance and geopoint

musketyr added a commit that referenced this issue Apr 28, 2013
musketyr added a commit that referenced this issue May 6, 2013
@musketyr musketyr closed this May 6, 2013
musketyr added a commit that referenced this issue May 6, 2013
musketyr added a commit that referenced this issue May 6, 2013
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.