ogterran,

Unfortunately the SearchableModel indexes all StringProperties and
TextProperties in the model. You will need to create another model that
contains only the items you want to index. Something like:

class Product(db.Model):
       pid = db.StringProperty(required=True)
       title = db.StringProperty(required=True)
       site = db.StringProperty(required=True)
       url = db.LinkProperty(required=True)

class ProductSearchIndex(search.SearchableModel):
       product = db.ReferenceProperty(Product)
       title = db.StringProperty(required=True)

On Wed, Jun 10, 2009 at 6:11 PM, ogterran <jonathanh...@gmail.com> wrote:

>
> Hi,
>
> When I create a datastore model using SearchableModel, it creates a
> __searchable_text_index column, for full text search.
> If I don't want all the columns to be part of the index for search,
> how do I exclude columns for full text search?
>
> i.e.
> I don't want pid, site, and url to be part of the full text search.
>
> class Product(search.SearchableModel):
>        pid = db.StringProperty(required=True)
>        title = db.StringProperty(required=True)
>        site = db.StringProperty(required=True)
>        url = db.LinkProperty(required=True)
>
> Thanks
> Jon
> >
>


-- 
=======================================
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
=======================================

--~--~---------~--~----~------------~-------~--~----~
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-appengine@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