Databases
0/2 sections
0%

Elasticsearch

Elasticsearch is a distributed full-text search and analytics engine. Built on Apache Lucene, it powers search, log analytics (ELK stack), and real-time metrics at massive scale.

Relevant to My Experience

How this topic connects to real projects and companies

Experience

Elasticsearch for distributed search and analysis

Related Projects

1Indexing & Queries

javascript
import { Client } from '@elastic/elasticsearch';
const client = new Client({ node: 'http://localhost:9200' });

// Index a document await client.index({ index: 'products', id: 'prod-1', document: { name: 'Wireless Keyboard', description: 'Compact mechanical keyboard with RGB lighting', price: 79.99, category: 'electronics', tags: ['keyboard', 'mechanical', 'wireless'], inStock: true, createdAt: new Date(), }, });

// Full-text search const results = await client.search({ index: 'products', body: { query: { bool: { must: [ { multi_match: { query: 'wireless keyboard', fields: ['name^3', 'description', 'tags'], // boost name fuzziness: 'AUTO' }} ], filter: [ { term: { inStock: true } }, { range: { price: { gte: 20, lte: 200 } } } ] } }, aggs: { by_category: { terms: { field: 'category.keyword', size: 10 } }, price_ranges: { range: { field: 'price', ranges: [{to: 50}, {from: 50, to: 100}, {from: 100}] }} }, sort: [{ _score: 'desc' }, { price: 'asc' }], highlight: { fields: { name: {}, description: {} } }, from: 0, size: 20 } }); ```

2Mappings & Aggregations

javascript
// Create index with explicit mapping
await client.indices.create({
  index: 'products',
  mappings: {
    properties: {
      name: { type: 'text', analyzer: 'english' },
      'name.keyword': { type: 'keyword' },  // for exact match and sorting
      description: { type: 'text' },
      price: { type: 'double' },
      category: { type: 'keyword' },
      tags: { type: 'keyword' },
      inStock: { type: 'boolean' },
      createdAt: { type: 'date' }
    }
  }
});

// Analytics aggregations const analytics = await client.search({ index: 'orders', body: { query: { range: { createdAt: { gte: 'now-30d' } } }, aggs: { daily_revenue: { date_histogram: { field: 'createdAt', calendar_interval: 'day' }, aggs: { revenue: { sum: { field: 'total' } } } }, top_products: { terms: { field: 'productId', size: 10 }, aggs: { total_sales: { sum: { field: 'quantity' } } } } }, size: 0 // no documents, only aggregations } }); ```

Explore the Full Portfolio

This is the complete portfolio of Sufi Khan Sulaiman, a technology leader specialising in B2B commerce and digital automation. Start from the Home page for the overview, then move through two decades of career experience across FLIR Systems, Lorex Technology, and 1c Platform, and the full catalogue of project case studies spanning headless commerce migrations, AI recommendation engines, and multi-channel fulfilment systems.

The skills and certifications page maps the technical and leadership capabilities behind the work, while the articles and the knowledge base break down the thinking into actionable frameworks. For hands-on learning, the tutorials and applications sections cover practical builds from front-end fundamentals to full-stack web apps.

For consulting engagement, the expertise page outlines service offerings, the ecommerce hub covers platform architecture and automation strategy, and the ecommerce guide (PDF) is a downloadable 55-page field manual. When you are ready to talk, the contact page is the direct line.