searchable

Two searchable.xml activities in one AndroidManifest.xml

余生颓废 提交于 2019-12-09 07:59:16
问题 I have an Android app which has a few different activities for browsing articles and images downloaded from RSS. I'd like to be able to offer to hook up the search button to the Search dialog, using the a searchable.xml file. I've managed to do this with one search, using: <activity android:name=".search.SearchResultsActivity" android:label="@string/search_results_activity_title" > <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name=

Android Search Interface not submitting query

会有一股神秘感。 提交于 2019-12-07 16:11:57
问题 I've implemented a Search Interface (the Search Widget) by following the official tutorial for Search Interface closely. It all looks good but I can't submit the search query. When I click the "Send" button on the keyboard nothing happens. Here is what I did: AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="18" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android

grails searchable plugin query

╄→гoц情女王★ 提交于 2019-12-07 02:15:13
问题 My Grails app is using the searchable plugin, which builds on Compass and Lucene to provide search functionality. I have two searchable classes, say Author and Book. I have mapped these classes to the search index, so that only certain fields can be searched. To perform a search across both classes I simply call def results = searchableService.search(query) One of the nice features of doing the search across both class simultaneously, is that the results object includes metadata about number

Android abs with SearchView, onQueryTextListener not working

只愿长相守 提交于 2019-12-06 07:46:03
问题 I'm trying to use the SearchView Support v4 version with action bar sherlock. So i have my search button in the action bar -> when i touch it the keyboard show up and the searchBar too. My problem is that i need to use the listeners onQueryTextSubmit and onQueryTextChange but they are never fired. I need to use the searh query string and do custom stuff with it. Here is the full activity.java public class ActivityMain extends SherlockFragmentActivity implements OnQueryTextListener,

Android Search Interface not submitting query

北慕城南 提交于 2019-12-05 18:35:25
I've implemented a Search Interface (the Search Widget) by following the official tutorial for Search Interface closely. It all looks good but I can't submit the search query. When I click the "Send" button on the keyboard nothing happens. Here is what I did: AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="18" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Grails 2.4 + Hibernate 4 + Searchable plugin = ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl

主宰稳场 提交于 2019-12-03 14:00:26
问题 Recently I was integrating a simple Grails application with the Searchable plugin. What I've found was that Searchable plugin does not work with Hibernate 4 library. Here you can find a sample application that contains only clean Grails 2.4 app with only Searchable plugin added - https://github.com/wololock/grails-searchable-example When I run this app with: runtime ":hibernate4:4.3.5.5" dependency, it wont start and throws an exception: ClassNotFoundException: org.hibernate.impl

Two searchable.xml activities in one AndroidManifest.xml

孤街醉人 提交于 2019-12-03 10:09:35
I have an Android app which has a few different activities for browsing articles and images downloaded from RSS. I'd like to be able to offer to hook up the search button to the Search dialog , using the a searchable.xml file. I've managed to do this with one search, using: <activity android:name=".search.SearchResultsActivity" android:label="@string/search_results_activity_title" > <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable_articles"/> </activity> and in the

Grails: Lucene, Compass Query Builder and date ranges

大憨熊 提交于 2019-12-02 12:53:05
问题 I have the searchable plugin working with my grails project. I have it indexing 4 different tables at work. Unfortunately, each table has a date field that is named differently. Some are named createdAt, some named publishedOn, etc... Within my search, I need to get items that are within a specific date range out of those fields. Is there a way to do this? I've seen one specific instance in the documentation for the plugin, but it doesn't take into account different field names like I have to

Android: SearchableInfo is null when using packageNameSuffix in Gradle build script

主宰稳场 提交于 2019-12-01 06:14:48
问题 I encountered that the method getSearchableInfo always returns null during SearchView initialization if I use the packageNameSuffix in the project's Gradle build script. SearchView initialization: final SearchManager searchManager = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); SearchableInfo info = searchManager.getSearchableInfo(componentName); mSearchView.setSearchableInfo(info); Project's build.gradle: android { [...] buildTypes { debug { packageNameSuffix ".debug"

Disable grails Searchable plugin default search page?

情到浓时终转凉″ 提交于 2019-12-01 06:02:17
I'm trying to disable the Searchable plugin default search page ( http://localhost/searchable/ ), but haven't found a way to do it. Anyone know how this can be done, preferably in a legit way, but resorting to trickery if necessary? I usually re-route error code handlers to a controller so I can do some logging or whatever before rendering the view. You can use that here also: class UrlMappings { static mappings = { "/searchable/$action?"(controller: "errors", action: "urlMapping") "/$controller/$action?/$id?" { } "/"(view:"/index") "403"(controller: "errors", action: "accessDenied") "404"