Hi Robert,

thanks for your reply, thats a good ides, because my
my keywords I´m searching for are indeed in a collection.
So I´ll try it this way.

Thanks.

Greets Alex


On 27 Okt., 19:11, Robert Kluin <robert.kl...@gmail.com> wrote:
> Hi Alex,
>    You're really only going to be able to do a _prefix_ search using
> one value at a time.  However, if the string you are matching against
> is some type of collection (list, array, set, etc...) of keywords you
> can do multiple _equality_ matches.
>
> Robert
>
> On Wed, Oct 27, 2010 at 04:22, AlexG<alexander.gauss.ax...@googlemail.com> 
> wrote:
> > Hi Robert,
>
> > yes, if I have the same keywords, two times, I get results. It It
> > seems,
> > that your theory is right.
>
> > Any suggestion, how I can realize this on one query?
>
> > Greets
> > Alex
>
> > On 14 Okt., 18:33, Robert Kluin <robert.kl...@gmail.com> wrote:
> >> Hey Alex,
> >>   I am guessing that under the hood App Engine breaks the startsWith
> >> into two filters that looks something like:
> >>      myArray >= "keyword" AND myArray < "keyword" + "z"
>
> >>  So when you add the second startsWith filter, you get:
> >>      myArray >= "keyword" AND myArray < "keyword" + "z"
> >>      AND myArray >= "otherword" AND myArray < "otherword2" + "z"
>
> >>   That is not going to work.  You may be able to validate my theory by
> >> making the two keywords the same and seeing if you get results.
>
> >> Robert
>
> >> On Thu, Oct 14, 2010 at 03:17, AlexG
>
> >> <alexander.gauss.ax...@googlemail.com> wrote:
> >> > Hi @ all,
>
> >> > i have a problem with a query, What I want to do, is to search in a
> >> > String[] for keywords.
> >> > I use the String.startsWith("a") function.
>
> >> > When I build the qery like this:
>
> >> > select from ... where myArray.startsWith("keyword"), everything works
> >> > fine.
>
> >> > But the problem is, when I build a query, where I want to search for
> >> > two keywords, the query
> >> > doesnt give me results.
>
> >> > Example:
>
> >> > select from ... where myArray.startsWith(keyword1) &&
> >> > myArray.stratsWith("keyword2")
>
> >> > I don´t know why this doenst work, maybe somebody can help me??
>
> >> > Thanks.
>
> >> > Greets
> >> > Alex
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to google-appeng...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > google-appengine+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to