search

Android search dialog in landscape mode

安稳与你 提交于 2019-12-24 10:02:24
问题 I'm using searchable.xml to search the email. When in landscape mode, the ui background is showing as a white screen, please give me solution for the issue. Thanks, Sneha 回答1: I had the same problem as 'sneha' and it gets fixed by setting " flagNoExtractUi " ime option for the SearchView . i.e. android:imeOptions="flagNoExtractUi" 回答2: With SearchView, if you don't want to show full-screen keyboard while in Landscape mode (rather show normal keyboard), IME_FLAG_NO_EXTRACT_UI and IME_FLAG_NO

Finding Records in a Database using a Textbox and Button

随声附和 提交于 2019-12-24 09:58:11
问题 I have been learning from a tutorial on Home and Learn about setting up databases. Currently, I'm learning about finding records in a database. I'm trying to get my GO! button search for a ingredient in my data table, and I"ve followed the tutorial thoroughly and have no errors in my Error list, but this line of code: returnRows = dataRecipe.Tables["CookBookRecipes"].Select("Ingredients = '" + searchOut + "'"); It stops my program, and brings up this message: Object reference not set to an

search outlook mail Item by displayed received date instead of Header Information Date in C#

僤鯓⒐⒋嵵緔 提交于 2019-12-24 09:57:42
问题 I have received an outlook mail at 25 Jun 2013 14:52:37 -0400 (EDT) and it is displaying: Wed 6/26/2013 12:29 AM (in GMT). Now in my C# window application when i am seraching mail item this mail is not displaying between received date 26 June to 28 June (if we are seraching it between received date 25 June to 28 June it is displaying ) my search condition in as follows: "urn:schemas:httpmail:datereceived >= '6/26/2013' AND "urn:schemas:httpmail:datereceived"" <='6/28/2013' How to apply my

Filter haystack result with SearchQuerySet

≡放荡痞女 提交于 2019-12-24 09:53:11
问题 I'm using haystack with whoosh, trying to restrict search results to entries created by the currently logged in user only. The category model, for which I created an index, has a foreign key: user = models.ForeignKey(User, editable=False) And in my custom search view I want to filter like this: searchqueryset = SearchQuerySet().filter(user=request.user.id) form = SearchForm(request.GET, searchqueryset=searchqueryset, load_all=True) if form.is_valid(): query = form.cleaned_data['q'] results =

Return records from azure search that match the exact search term only

故事扮演 提交于 2019-12-24 09:35:32
问题 So I'm new to Azure search and I'm only starting to figure it out. I have a search index that queries a pretty simple sql view for matching records. I'm having major trouble getting an exact match for the word I search for. Whenever I search I get records with the exact word only.. however I also get records that contain the searched for word e.g I search for "Type" and I get "New Type" and "My Type". I'm enclosing "Type" in double quotes when I search. I'm using the C# SDK, and it also

How do search engines recognize search boxes on websites?

[亡魂溺海] 提交于 2019-12-24 09:33:50
问题 I've noticed that a lot of the time when i search something on Google, Google automatically uses the search function of relevant websites and return the result of the website search as if it was just another URL. How do i let Google and other search engines know what is the search box on my own website and does Open Search has anything to do with it? 回答1: do you maybe mean the site search function via the google chrome omnibar? to get there you just need to have a form with method type GET

Automating book citation search

两盒软妹~` 提交于 2019-12-24 09:18:36
问题 I have a list of books listed by their titles in a text file. I want to write a script which can use a web service like Google scholar or amazon to search for the books and return me a xml or bibtex file with citation info for each book. Which programming tools can I use for this kind of automated search ? 回答1: Python would be my recommendation. Get names from the text file, simple file reading Construct a REST URL request to google's book API http://books.google.com/books/feeds/volumes?q

Xcode plist automatically jumps to the top after a search

喜欢而已 提交于 2019-12-24 09:06:56
问题 I have a file foo.plist inside of an Xcode project. The plist is long. I hit command-F and enter "bar" into the search box. Xcode duly finds the text "bar" for me. I need to change it to "fubar". But no matter what I do next, I can't start typing into that field. If I click on my search result, Xcode scrolls to the top. If I delete the search text, Xcode also jumps to the top. Is there any way to tell it to keep the focus at the search result and let me do something with it? The only thing I

ElasticSearch stat size_in_bytes different for identical indices

萝らか妹 提交于 2019-12-24 08:48:54
问题 In ElasticSearch 5.6, I have created multiple indices of the same 15k documents. Specifically, 4 that all share the same mapping, settings, and content. 3 of the 4 had index sizes ~1.0 GB. index_1 of the 4 has a size of 52 MB. I've compared searches across the 4 indices, and index_1 returns less documents than the others for identical searches. I've seen anywhere from 1% to 80% less documents per query. At this point, I don't trust the docs.count or the store.size_in_bytes on index_1 or the

Are find and read operations on std::map threadsafe? [duplicate]

雨燕双飞 提交于 2019-12-24 08:45:56
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Thread safety of std::map for read-only operations Having std::map a can we do a.find(...)->second in multiple threads at the same time on it? 回答1: Yes. As long as none of your threads do a write i.e. Construct the data structure in memory Use as many threads to find/read as you require. If the leaf needs altering put a mutex there. 来源: https://stackoverflow.com/questions/7198332/are-find-and-read-operations-on