Friday, October 30, 2015

git remember credentials

git config credential.helper store

install and use composer on windows cygwin

cd /cygdrive/c

curl -sS | php

cd /cygdrive/c/xampp/htdocs/project

php C:\\composer.phar install

Wednesday, October 14, 2015

filling leadership circle form

$(":radio[value=]").each(function(){ $(this).prop('checked',true);$(this).parent().addClass('checked'); });$(":submit[value=Continue]").click();

mysql create user

GRANT all ON twitter.* TO 'twitter'@'localhost' identified by 'twitter';
flush privileges;

Tuesday, October 13, 2015

Elasticsearch notes

1. autocomplete
2. more like this

random journals, nausea appearing before vomiting (keyword ordering using script) etc

Monday, October 12, 2015

elasticsearch notes

1. What is constant score query?
2. Autocomplete feature : suggestion modes -> popular,missing,always
3. CORS didn't work.

Sunday, October 11, 2015

Elasticsearch notes

1. Use marvel like a scratchpad for trying out GET/POST/PUT etc
2. PUT needs an id, POST generates one
3. ES auto generates field type mapping, can be overridden
4. Analyzers : whitespace, camelCase,regexp, Hindi etc
5. boost a field
6. search queries can be very structured, AND, OR of multiple fields
7. index is divided into shards. each shard can have replicas.
8. document routing - which document goes to which shard
9. prefix search, range search, 
10. filter query : doesn't compute score hence fast
11. match query computes score, so slow


Blog Archive