Hi,

I have created class Record as follows :

class Record(search.SearchableModel):
  exp_year = db.IntegerProperty()
  keywords = db.StringProperty(multiline=True)

now when i am running the following query in dev version :
query = Record.all().search("first second third fourth" )

then index file gets updated as single entry for
__searchable_text_index
- kind: Record
  properties:
  - name: __searchable_text_index
  - name: exp_year

if i modify the query to this  (added the filter clause)
query = Record.all().search("first second third" ).filter("exp_year >",
1)

the index file get updated with multiple entries for
__searchable_text_index
- kind: Record
  properties:
  - name: __searchable_text_index
  - name: __searchable_text_index
  - name: __searchable_text_index
  - name: exp_year

The number of entries for __searchable_text_index then directly
depends on the number of keywords searched for.
But in earlier query (ie without filter) it does not depend on the
number of keywords.
Am I putting query wrong somewhere ? or is it expected behaviour ?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to