Skip to content

Instantly share code, notes, and snippets.

@robyoung
Created March 8, 2009 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robyoung/75731 to your computer and use it in GitHub Desktop.
Save robyoung/75731 to your computer and use it in GitHub Desktop.
add a simple document with solrpy
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