On Wed, Oct 8, 2014 at 4:19 PM, Anand Chitipothu
wrote:
> Hi,
>
> I'm working on a slightly large application and I'm trying to model it as a
> some kind of plugin architecture so that it modular and I can enable or
> take out features without lot of code changes.
>
> One of the issues I faced wa
Take a look at Apache Solr (http://lucene.apache.org/solr/).
You can find python clients for Solr here
http://wiki.apache.org/solr/SolPython
For a quick solution, add all your products to solr with the name of the
product as an indexed field.
Add the *product id* if you plan on storing specs elsew
Text files are human readable when displaying contents directly
Contents of other formats are not human readable which is why you need
external readers to view these files.
Don't print the pdf or ms files. instead write them to a file.
#pdf example
f = open('/tmp/123.pdf', 'wb')
f.write(handle3.r