Questions tagged [searchable]
Searchable is a plugin for Grails that brings rich search features to Grails applications with minimum effort, and gives you power and flexibility when you need it. It is built on the fantastic Compass Search Engine Framework and Lucene and has the same license as Grails (Apache 2).
208
questions
18
votes
3
answers
5k
views
Two searchable.xml activities in one AndroidManifest.xml
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 ...
16
votes
1
answer
3k
views
android searchable doesn't work
I'm working around with a searchable action bar. And I gotta a problem that the action bar doesn't react with the searchable activity. THAT IS, I enter something in the action bar's searchable ...
14
votes
3
answers
24k
views
Use different key for searching instead of value or label in react-select in reactJS
I am using react-select as a searchable drop-down in my react app.
I am referring this link https://github.com/JedWatson/react-select.
In the drop-down options structure, it needs label and value ...
14
votes
3
answers
10k
views
searchManager.getSearchableInfo(getComponentName()) returns null
I've followed this Android guide in order to add a search bar to an activity. The setup looks like this:
res/menu/activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:...
12
votes
3
answers
3k
views
How to use a @FetchRequest with the new searchable modifier in SwiftUI?
Is it possible to use the new .searchable in combination with @FetchRequest?
I have a code like this:
struct FooListView: View {
@Environment(\.managedObjectContext) private var viewContext
...
11
votes
0
answers
935
views
Combine multiple sphinx documentation sites [closed]
I would like to combine multiple sphinx generated documentation sites into a single location (site). I dont want to replicate the work, but just want to index/search it from a central location.
...
10
votes
2
answers
3k
views
Android: how to declare an activity as main and searchable?
I would like my main activity to be searchable also but when I change the manifest.xml to
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category ...
10
votes
0
answers
1k
views
Display mic icon in SearchView always
In Android Searchable SearchView the clear(X) icon replaces the mic icon on typing. I want to display both clear and mic icons while typing. Is there a way to do that?
Here are my codes:
res/xml/...
7
votes
2
answers
2k
views
Grails 2.4 + Hibernate 4 + Searchable plugin = ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl
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 ...
7
votes
1
answer
2k
views
How to detect tap on cancel button with searchable modifier
I use the SwiftUI searchable of iOS15 modifier to make a search with the onSubmit modifier to send a HTTP request, and I also would like to reset the initial list when the user tap on Cancel button;
I ...
6
votes
2
answers
2k
views
grails searchable plugin query
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 ...
6
votes
1
answer
2k
views
Grails searchable plugin
My application is using the Grails searchable plugin, using Compass underneath.
The tables begin indexed is about 36 MB, and is building indexes of about 350 MB. This is small in most ...
5
votes
1
answer
1k
views
Disable grails Searchable plugin default search page?
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 ...
5
votes
2
answers
1k
views
What text processing tool is recommended for parsing screenplays?
I have some plain-text kinda-structured screenplays, formatted like the example at the end of this post. I would like to parse each into some format where:
It will be easy to pull up just stage ...
4
votes
2
answers
4k
views
Searchable Plugin Unable to Resolve Class in Grails 2.2.4
Whenever I run my Grails application for the first time, using searchable 0.6.4, I get the following error:
| Error Fatal error during compilation org.codehaus.groovy.control....
4
votes
3
answers
7k
views
Android abs with SearchView, onQueryTextListener not working
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 ...
4
votes
3
answers
2k
views
Searchable Configuaration Returning Null For the SearchView
I have created a search interface but I can't seem to connect the SearchView in the ActionBar to my searchable configuration file. When I try to retreive it in my onCreateOptionsMenu method ...
4
votes
1
answer
3k
views
Is global search in android still available for developer?
I'm stuck for adding global search to my app.
I did everything that I should do.
my question is is global search is still available for developer?
I read somewhere that Google replaced it with index....
4
votes
2
answers
1k
views
How to know when SwiftUI keyboard search button tapped in .searchable search window
I am using the .searchable modifier in SwiftUI. Is there anyway to know when the user presses the search key on the keyboard?
I know how to do this by using a UIViewRepresentable and searchController....
4
votes
1
answer
409
views
Changing the color of .searchable() elements
I am using the .searchable() modifier on a NavigationStack. I want to change the color of the cancel button as it does not match with my app colors. How can I do this?
This is what I already tried ...
4
votes
1
answer
1k
views
NavigationLink doesn't work with new .searchable modifier on SwiftUI 3.0
I'm trying the new features of SwiftUI 3.0 introduced at Apple WWDC21.
In particular I'm trying to use the .searchable modifier to implement a search bar in a list and let the user navigate to the ...
4
votes
3
answers
3k
views
set numeric input type to SearchView in ActionBar
I don't manage to set the numeric input type to the SearchView in my ActionBar. I have the following searchable.xml file in my res/xml folder:
<searchable xmlns:android="http://schemas.android.com/...
4
votes
1
answer
14k
views
How to search ListView in Android (Contact's style)
I have a question regarding application I am building. I have a custom listview defined. It is backed with the DB data.
I want that I could press search button and that search would appear (the same ...
4
votes
4
answers
1k
views
Variable search hint
In my searchable.xml in my android project, I get to specify a hint that appears in the edittext, when no text is written. Is there any way to dynamically set this?
In my action, I have two search ...
4
votes
2
answers
1k
views
Setting the font of SwiftUI's .searchable() with the appearance API of UITextField+UISearchBar doesn't work
I'm customizing the appearance of the .searchable() modifier of SwiftUI with the appearance API of UISearchBar.
Almost everything works, except the font of the text field, and I have no idea why (...
3
votes
3
answers
5k
views
How to pass database adapter to another activity?
I'm having some trouble understanding the search dialog in the Android SDK.
The "main activity" of my application provides a button. If the user clicks this button the search dialog is called. The ...
3
votes
1
answer
1k
views
Android: SearchableInfo is null when using packageNameSuffix in Gradle build script
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:
...
3
votes
1
answer
1k
views
Android Search Interface not submitting query
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" ...
3
votes
2
answers
2k
views
How to end old Activity when Search starts new Activity
I have an application that presents a sort of catalog of items in a ListView. The list is rather long, so I've implemented the Search capability like this:
<activity android:name="....
3
votes
1
answer
8k
views
searchable_dropdown dont work with class list
I Implemented a flutter dropdown menu using searchable_dropdown 1.1.0 package,,
I tested with my class list, and I found that the search TextField box dont work with my list of class.
I want that my ...
3
votes
1
answer
937
views
How do I map Grails Searchable plugin across more than 2 domain objects?
I'm using the Searchable plugin in my Grails application, but am having trouble getting it to map across more than 2 domain objects while returning valid search results. I've looked through the ...
3
votes
2
answers
1k
views
.searchable() - make the search box stick to the top without moving when focused
I am trying to make the search box in .searchable stick to the top without moving when there is no navigationBarTitle. Basically, when the box gets focused, there is an animation that moves the box ...
3
votes
3
answers
558
views
How to avoid the .searchable from appearing and disappearing?
I am having a lot of buggy behavior on .searchable, on iOS 16.1 (Xcode 14.1). As you can see in the screenshot below. When entering a view with a .searchable component it will overlap with the view in ...
3
votes
1
answer
1k
views
How to change searchable search icon color in swiftui
I want to change the search icon color. is there a way to change it?
NavigationView {
Text("Searching for \(searchText)")
.searchable(text: $searchText, prompt: "Look for something&...
3
votes
1
answer
5k
views
Searchable not able to keep focus and show keyboard
I have the following code:
struct FocusStateTestView: View {
@State var showSheet = false
var body: some View {
VStack {
Text("FocusStateTestView")
...
3
votes
1
answer
370
views
Grails Plugin Searchable - default wildcard search
Is there a way to automatically wrap all searches with a wildcard?
e.g.:
Book.search("*${params.q}*", params)
3
votes
2
answers
796
views
Grails 2.4.4 + searchable:0.6.9 runtime issues
When trying to add the searchable:0.6.9 (or lesser ones) on a Grails 2.4.4 app I get an exception thrown by hibernate4, but this only happens when I add the "static searchable = true" to my domain ...
3
votes
0
answers
201
views
SwiftUI retain cycle with .searchable
I think I found a retain cycle when binding an observable to a .searchable modifier...
to verify: create a new swiftUI app; replace ContentView.swift's content with this:
import SwiftUI
struct ...
3
votes
1
answer
799
views
Android Global Search
I'm trying to add my app to the global search in Android so users can search my app from their homescreen. I've followed the tutorial at http://developer.android.com/guide/topics/search/search-dialog....
3
votes
3
answers
3k
views
Where is the default path to the apache lucene index file with grails searchable plugin?
I'm using in my grails 1.3.7 project the searchable plugin. My project was running well until my macbooks harddrive was full and osx threw an message about memory problems and that it'll delete some ...
3
votes
0
answers
139
views
SpringSyncTransaction with Grails Searchable
I'm trying to use the SpringSyncTransaction with the Grails Searchable plugin but can't set the transactionManager on the LocalCompassBean as suggested. It appears that Searchable does not use the ...
2
votes
1
answer
1k
views
NavigationStack Searchable .focused
I need to configure when the user clicks in the Search box to fulfill the condition (display another View). Once he clicks Cancel to display the original view (which can already be tested via ....
2
votes
1
answer
832
views
How do dismiss keyboard on .searchable while search bar is still focused?. [SwiftUI]
I added .searchable and it is working fine. But I want to show another view while the search is still focused and on the navigation bar.
If I use
@Environment(\.dismissSearch) private var ...
2
votes
2
answers
1k
views
laravel scout when does shouldBeSearchable get triggered
Lets say I have a shouldBeSearchable() set like this:
public function shouldBeSearchable()
{
return $this->is_active === 1;
}
By default in my app a newly created post gets is_active set to 1 ...
2
votes
1
answer
2k
views
Searchable SearchView setSuggestionsAdapter() in android studio
I'm working on an app. It requires a searchview. im facing a problem while working with cursor adaptor. i simply want a string array or xml string array to displayed in suggestion adaptor. when i ...
2
votes
1
answer
47
views
Seachable source/version control application and code repository/library for very small projects
In my job we created one file or two Java files to pull data from a system and return an object to Jasper Reports.
I am looking for a source control system to use for this. I have used subversion ...
2
votes
1
answer
512
views
Grails searchable relationship
I am wondering how to return specific domain with searchable?
For example we have domain A and B. Both domain are searchable and have relationship: A has many B and B belongs to A. Another case A and ...
2
votes
1
answer
1k
views
using custom Id column mapping with Searchable plugin
I have a Domain class with a custom Id mapping
...
...
String ensemblGeneId
String ensemblTranscriptId
String ensemblProteinId
String proteinSequence
String topologySequence
...
2
votes
1
answer
7k
views
Searchable Dropdown in Website - Django - Saving to data base
I am building a website and part of it involves a drop-down which is easily called in the HTML by {{ form.inspection_type }}. This is a pretty big drop-down and a pain to scroll all the way to what ...
2
votes
1
answer
142
views
Highlighting a field from an owned object with sunspot_solr
I am using sunspot_solr to implement a quickfind in ruby on rails. I am fulltext searching through a number of project objects, but would also like to search through content of the owned notes as ...