Following is the solution I am planning to implement for a similar case in
my application. But, it depends on your data.
*Method 1*
* Create 3-4 additional properties in the BOOK kind. Like for example,
word1, word2, word3 properties etc.
* Split the book title into words and store each word into a property.
* With objectify, then you can do the above split login in the PrePersist
method
* Do the query with word1, word2 and word3 properties. This means,
additional 2-3 queries will be performed.
*Method 2
** Create a KIND BookWords
{
@Long id
Key<Book> bookKey
String word
}
* Split the book tile and for each word add a row in the BookWords table.
* If, interested in case insensitive searches, convert the 1 letter of the
split word into upper/lower case and created additional rows in KIND
BookWords
* Do a query with the BookWords, and then get all the Book Keys.
* Now do a query with the Book
-Aswath
www.AccountingGuru.in
On Fri, Aug 26, 2011 at 9:55 PM, realdope <[email protected]> wrote:
> Hi,
> I know that you cannot do a "LIKE" clause in BigTable. How do you get
> around this issue?
>
> Suppose I'm making a book database, and I want to implement a search
> function that compares titles against a random string. What is a plausible
> mechanism with which to do so?
>
> Any help would be appreciated!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/S3KWOBYjWuEJ.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.