<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,31 +1,31 @@
+
+# dilemma: directly import woosh or not?
+# We need access to the various index field types (TEXT, ID, KEYWORD, STORED)
+# Plan A: We could &quot;hide&quot; woosh and only expose djoosh namespace, but this gets a
+# little complex.
+# Plan B: Alternately, we can import woosh into djoosh and then it is
+# automatically pulled in when we do &quot;import djoosh&quot; here.
+# Plan C: import woosh directly.
+
 import djoosh
 import woosh
 
-
 class MyIndexOptions(djoosh.IndexOptions):
-    field1 = woosh.TEXT(...woosh syntax...)
+    field1 = woosh.TEXT(...woosh syntax...) # see above for import considerations
     field2 = djoosh.Keyword(...woosh syntax...)
     field2 = djoosh.Id(...woosh syntax...)
     field2 = djoosh.Stored(...woosh syntax...)
     
 
 class MyModelSearch(djoosh.ModelSearch):
+    # simple-style exclude, fields for people who just want to use automatic
+    # mapping of django model fields to woosh fields.
     exclude = (&quot;field1&quot;, &quot;field2&quot;,) # exclude fields from indexing
     fields = (&quot;field1&quot;, &quot;field2&quot;,) # explicity include fields for indexing
-    index_options = MyIndexOptions
     
-djoosh.search.register(MyModel, MyModelSearch)
-
-
------------
-    
-class Text(djoosh.IndexField):
-    def __init__(bool stored=false, analyzer=woosh.StandardAnalyzer):
-        
-        
-admin.site.register(MyModel, admin.ModelAdmin)
+    # if you want greater control over mapping of model fields to woosh fields
+    # this is much like custom forms for admin.
+    index_options = MyIndexOptions
 
-TEXT: stored?, analyzer, 
-KEYWORD
-ID
-STORED
+# register the search definition for the model
+djoosh.register(MyModel, MyModelSearch)</diff>
      <filename>example_search.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>187bbf233b557144ec8dfb14ec9a40826c65a64b</id>
    </parent>
  </parents>
  <author>
    <name>Idan Gazit</name>
    <email>idan@pixane.net</email>
  </author>
  <url>http://github.com/idangazit/djoosh/commit/8bf7e4aa12200badc62caff7eb07da3d462f874b</url>
  <id>8bf7e4aa12200badc62caff7eb07da3d462f874b</id>
  <committed-date>2009-02-17T14:49:08-08:00</committed-date>
  <authored-date>2009-02-17T14:49:08-08:00</authored-date>
  <message>cleaned up and commented example a little</message>
  <tree>161c57d3a1623ff489f49ccac08a2396743acb3b</tree>
  <committer>
    <name>Idan Gazit</name>
    <email>idan@pixane.net</email>
  </committer>
</commit>
