Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:35:39+00:00 2026-06-06T05:35:39+00:00

We have a small data set and would like to search through it in

  • 0

We have a small data set and would like to search through it in a clever way in order to populate an auto-complete input box. The user wants to search for one type of entity, but should be able to put in attributes of associated types.

As our application is very industry-specific, I will try to put the abstract question into a more relatable context:

Example: The user wants to select a certain type of fruit and can use a lot of different characteristics of the fruit to search for it. She may search for its name (apple), special types of the same fruit (golden delicious), localized versions (apfel, تفاح, pomme), but also other characteristics, such as food containing the fruit (pandowdy, cider), or even results from a full-text search of its description.

Normally I would want to use something like solr or elasticsearch, but our data set is not really large with 4-5 associated entities of max 200 elements each. In addition it will stay very static, with a few editorial additions every other week. So we thought about using the browser’s data store to manage and search some kind of index. The problem is that in our research we could not find anything that goes far beyond abstracting Web SQL or Indexed DB.

Are there any projects or libraries that do something like solr or elasticsearch and can be used on the client-side for small data-sets? We are looking for the following features

  • Fast search
  • Pre-processing (tokenization, filtering …)
  • Ordering
  • Ranking, query boosting

It should work on recent browsers and mobile, dumb fallback for other browsers (i.e. full text search) acceptable

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:35:41+00:00Added an answer on June 6, 2026 at 5:35 am

    IndexedDB
    Is incredibly cumbersome to work with and I don’t think it will do what you want without some modifications.

    WebSql
    I use Chrome WebSql (sqlite) with fulltext (FT3) and you can do some advanced querying with it and it automatically weights results. eg:

    table_ft3 structure=[id, name, description, pets]

    and you can query with
    “SELECT id FROM table_ft3 WHERE table_ft3 MATCH ‘word1 word2 wordfuzzy* -notme +required name:john edwar* mary pets:dog cat'”

    This is, however, restricted to Chrome. On a table of 560k rows with about 12 words each it’s very fast, 10ms and less.

    JSLinq – http://jslinq.codeplex.com/
    This is good for large data sets, by storing everything in memory it is ridiculously quick, but I don’t think it has any advanced weighting. It does have the added benefit of allowing you to write your own complex query functions.

    JSII – http://karussell.wordpress.com/2010/11/02/jsii-full-text-search-in-1k-loc-of-javascript/
    This uses Lucene style weighting and on 20k rows it comes in at 50ms which is not great but probably good enough for your data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small set of structured data items that I would like embedded
I would like to have a statusbar, so I started by making a small
I would like to have a set of nice tools in JavaScript for creating
I have a small data conversion application that converts xml into a json then
I have some (small amount) of data that I'll need quick access to on
I have a small database with tables containing a small amount of data which
I have a small application that uses a SharePoint list as the data source.
I have a small program that reads in a file and processes the data
Hi i have a small query which takes data from one mysql database and
I have written a small utility to collect system data and output it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.