Elasticsearch always returning “mapping type is missing”

Turns out this is happening because the mapping needs to be applied to the type: I tried applying it to the wrong thing: curl -XPUT 10.160.86.134:9200/products/_mapping -d ‘{ It needs to be applied to the type like so: curl -XPUT 10.160.86.134:9200/products/product/_mapping -d ‘{ It’s sad that a simple google search couldn’t answer this. Also the … Read more

Solr Collection vs Cores

From the SolrCloud Documentation Collection: A single search index. Shard: A logical section of a single collection (also called Slice). Sometimes people will talk about “Shard” in a physical sense (a manifestation of a logical shard) Replica: A physical manifestation of a logical Shard, implemented as a single Lucene index on a SolrCore Leader: One … Read more

How would one use Lucene.NET to help implement search on a site like Stack Overflow?

The answers you are looking for really can not be found using lucene alone. You need ranking and grouping algorithms to filter and understand the data and how it relates. Lucene can help you get normalized data, but you need the right algorithm after that. I would recommend you check out one or all of … Read more

Why are document stores like Lucene / Solr not included in NoSQL conversations?

I once listened to an interview with author Ursula K. LeGuin about fiction writing. The interviewer asked her about authors who work in different genre of writing. What makes one author a romance writer, and another a mystery writer, and another a science fiction writer? LeGuin responded by explaining: Genre is about marketing, not about … Read more

Why is Solr so much faster than Postgres?

First, Solr doesn’t use B-trees. A Lucene (the underlying library used by Solr) index is made of a read-only segments. For each segment, Lucene maintains a term dictionary, which consists of the list of terms that appear in the segment, lexicographically sorted. Looking up a term in this term dictionary is made using a binary … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)