Created
March 8, 2009 11:13
-
-
Save robyoung/75731 to your computer and use it in GitHub Desktop.
add a simple document with solrpy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn.add(id=1, title="Lucene in Action", author=["Erik Hatcher", "Otis Gospodnetic"]) | |
docs = [] | |
docs.append({'id':1, 'title':"Lucene in Action", 'author':["Erik Hatcher", "Otis Gospodnetic"]}) | |
docs.append({'id':2, 'title':"Programming Collective Intelligence", 'author':"Toby Segaran"}) | |
conn.add(docs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment