FAQ Database Discussion Community


Custom ContentProvider suggestions not displaying

android,android-contentprovider,searchview,search-suggestion
My goal: Implementing search within an application. How it should work: I have multiple activities which have a SearchView within their Action Bar (or Toolbar as they now call it), and a dedicated Search activity. I want to be able to input text in the SearchView, receive suggestions while i...

Action view intent does not work

android,search-suggestion,custom-search-provider
Action view Intent for Search widget does not send Intent i am using Toast to show whether intent is sent when user choose item from suggestion in Quick Search Box here is snippet where intent is received in searchable Activity if (Intent.ACTION_VIEW.equals(intent.getAction())){ /* Intent countryIntent = new Intent(this, RecordActivity.class); countryIntent.setData(intent.getData());...

Elasticsearch completion suggester on multifield with different weighting

elasticsearch,search-suggestion
I'm using the Completion Suggester in Elasticsearch to allow partial word matching queries. In my index (products_index), I'd like to be able to query both the product_name field and the brand field. Here are my mappings: POST /product_index mappings: { products: { properties: { brand: { type: "string", analyzer: "english"...

Android Studio, Search Activity (No data found massage)

android,sqlite,custom-adapter,search-suggestion,search-dialog
I'm a beginner at Android development. I have a problem trying to show in a List view that the query doesn't bring any result. I just appear blank (nothing) without indications. I'm using a Search dialog with customs suggestions, and when I start writing the query, the search starts suggesting,...

Collations are not working fine in Solr

solr,collation,spell-checking,search-suggestion
I am working on spell checking in Solr. I have implemented Suggestions and collations in my spell checker component. Most of the time collations work fine but in few case it fails. Working: I tried query:gone wthh thes wnd: In this wnd doesn't give suggestion wind but collation is coming...