Hi Trevor
Thanks for your suggestions. I have tried the Calendar.php with
exactly the same problem (didn't the code I posted look
familiar ;-)  ). Also, have tried creating an event with a description
using the calendar UI as you suggested and then searching using the
api and lo and behold it finds it. So it appears that events created
with the UI are found with the api, but those created with the api
aren't found (but are with the calendar ui).
Any more ideas on this??
Thanks
Conrad

On 30 Jun, 22:15, Trevor Johns <[EMAIL PROTECTED]> wrote:
> On Jun 30, 7:09 am, cc_humbry <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
> > I having difficulty in getting results from a full text event query
> > search on searching event content.
> > I have added events using the api and setting the content
> > programatically. This is fine and I can see the created events in the
> > calendar - including the content when I view the actual event from the
> > link in the calendar. However, when I search using the same values for
> > criteria that I have added to the event content thus...
>
> >    $gdataCal = new Zend_Gdata_Calendar($this->getClient());
> >     $query = $gdataCal->newEventQuery();
> >     $query->setUser($this->user);
> >     $query->setVisibility('private');
> >     $query->setProjection('full');
> >     $query->setQuery($queryString);
> >     $eventFeed = $gdataCal->getCalendarEventFeed($query);
>
> > I don't get any results.
> > Searching on other text that is in the title does work however. The
> > api 
> > descriptionhttp://code.google.com/apis/calendar/developers_guide_php.html#Retrie...
> > states "A full-text query searches both the title and content of an
> > event" so anyone know why this doesn't work???
> > (a search on the same criteria using the standard calendar search does
> > find these documents).
>
> > Thanks
> > Conrad
>
> Hi Conrad,
> The code you posted looks correct to me. Just out of curiosity, have
> you tried running the full text query using the calendar sample code
> (http://framework.zend.com/svn/framework/trunk/demos/Zend/Gdata/
> Calendar.php)? If so, do you get similar results?
>
> Also, does it make a difference if you create the events using the
> normal Google Calendar UI? Try creating something simple, like an
> event with a one word title and description and see if that makes a
> difference.
>
> Finally, make sure you're searching for exactally the word that
> appears in the description. For instance, if your description contains
> the word "apple" make sure you aren't searching for "apples" since it
> considers the two to be different words.
>
> Let me know what you come up with and we'll go from there.
>
> --
> Trevor Johnshttp://tjohns.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to