Devi

Bangalore, India

Feb
2
comment Elasticsearch - search_type as a body parameter
yes, from elastic guide, Out of the above[parameters], the search_type and the request_cache must be passed as query-string parameters. and cannot be passed inside the body.
Feb
2
answered Elasticsearch : when to set omit_norms option as false
Feb
2
answered Understanding MaxDocs in Elastic Search's explain feature
Jan
21
comment What does percolator mean/do in elasticsearch?
The document doesn't need to be indexed for percolator to work in the first place. From Elastic blog, A common misconception for those new to Percolator is that alerting is a side-effect of inserting documents, similar to a database trigger. This is not the case.
Jan
21
answered Pip Uninstall and Install same package gives 'AssertionError: Multiple .dist-info directories'
Oct
27
comment Fastest way to join two indexes into a third
Have you considered having a filtered alias pointing to multiple indices? elastic.co/guide/en/elasticsearch/reference/current/…
Sep
4
comment How to execute raw SQL in SQLAlchemy-flask app
db.engine.execute(text("<sql here>")).execution_options(autocommit=True)) executes and commits it too.
Sep
3
answered How to execute raw SQL in SQLAlchemy-flask app
Jul
13
answered Any reason not use PostgreSQL's built-in full text search on Heroku?
Jun
23
answered Cannot complete Flask-Migration
Jun
18
comment Using flask_login session with jinja2 templates
Flask-login docs do specify that You can then access the logged-in user with the current_user proxy, which is available in every template
Jun
17
answered Which record is causing NOTICE: word is too long to be indexed
May
14
comment Spell Checker for Python
The above mentioned full blog post just tries to "describe" Norvig's excellent and simple spell corrector and I don't think it has any extra information than the original work.
May
7
comment flask: error_handler for blueprints
Even with this in place, abort(404) in the blueprint's views would be handled by app's error handler and not this. See Flask doc for it for more info.
Apr
30
comment What's the difference between filter and filter_by in SQLAlchemy?
Is there any performance difference between them? I was thinking that filter_by might be a bit faster than filter.
Apr
17
answered what’s the difference between Expires and Cache-Control headers?
Apr
14
answered Using defaults with app.add_url_rule in Flask
Apr
8
awarded Good Answer
Mar
27
awarded Commentator
Mar
27
comment Execute some code when an SQLAlchemy object's deletion is actually committed
But models_committed is not limited to delete only, but called for inserts and updates which are most common. From the doc, "This signal is sent when changed models where committed to the database"
1 2 3