I am trying to display an "other" option on the search results box, no matter if the term user is search match or not, any idea how i can achieve this?
I tried with matcher, but since data is returned with AJAX it didn't work.
Thanks in advance.
Related
in my original workbook i want to display some values from another sheet for multiple actions.. so i put drop down list for each actions. but when the actions increased i couldn't recognize each formulas. (all of them are import range) so that if i can name each formulas in the drop down then i can recognize fast which action to be performed. here a sample sheet is attached for a solution.. pls take a look. in the dropdown list i included (=a2+b2) instead of that if it displayed as addition in drop down list would be help ful. please take a look.
sorry for my english
Any type of help would be appreciated.
https://docs.google.com/spreadsheets/d/1mpIWyQASMlxRVdlTkv9K1e4oihsrckjT6sD1mLDxvEc/edit#gid=0
If I understand correctly, you want to have a dropdown list menu (from Data Validation) that displays the operation name, but when you click it, it displays just the result.
This is very hacky, but here's a way to create some "labels" in your criteria box:
=IF(;"ADDITION";A2+B2),
=IF(;"SUBTRACTION";A2-B2),
=IF(;"DIVISION";A2/B2),
=IF(;"MULTIPLICATION";A2*B2),
How?(!)
After kicking around some no-op ideas, I finally settled on this as the cleanest and most flexible approach. (By some freak coincidence, it also makes some semantic sense too.) It works because when the first argument to IF is omitted, it defaults to 0 -> FALSE. This effectively makes the second argument to IF a comment/no-op, and always just selects the formula.
Yes, the semicolons are intentional or the parser will think of the args as list items.
Productivity Tip/Footnotes
Sheets will remove any line breaks in your validation criteria, so the formula will be hard to read when you have to edit it. If you anticipate that you'll be adding a bunch of functions later, save the above block in a text file and edit that. Then you can copy+paste it into the validation field.
It will also always show up as "INVALID" because the value will of course never match the formula text.
I am trying to search for a contact with a phone number of the following format:
(XXX) XXX-XXXX
I tried the following query and get no results:
/v1.0/me/contacts?$top=10&$search="(XXX) XXX-XXXX"
I also tried it with URL encoded parenthesis and also get no results:
/v1.0/me/contacts?$top=10&$search="%28XXX%29 XXX-XXXX"
The only thing that worked for me is:
/v1.0/me/contacts?$top=10&$search="*XXX*XXX*XXXX"
However, with the last one I'm concerned that it could return bad results in some cases where there might be some other numbers in the wildcard positions.
Is there a proper way to do this search?
Have you considered using filter query instead of search, that way you might be able to scope the search just to the phone field.
I'm not sure, if Solr can handle such a thing, or if there are other workarounds:
I have a search in solr, with several parameters, in a Rails app. The results are displayed, paginated, on a website. When a user clicks on a result, I want to present them other results before and after the clicked result on the detail page, so that she or he can click through the list on the detail page of a result.
How can I do such a thing? For now, I'm caching the search parameters in a session, repeat the search, get all hits back, and search in the array for the position of my current element. The drawback is obvious: This becomes slower and slower, the more results the whole search returns (in my case about 2.8s for a search with 5000 results).
So, is there some "around-search" feature in Solr, that I don't know? Like, I have the search parameters, and the ID of a product, and want to display the results around a specific result?
I know that I could cache all the results BEFORE the detail page, but that would mess up with pagination.
I hope I made myself clear, otherwise, please comment ;)
I would like to allow user to search for other users by typing a few keywords in Search box (with ThinkingSphinx as back-end).
After the server returned the search results and display it on View, I want users to be able to click on a dropdown, check on checkboxes to narrow down the results without resubmmitting the query.
Is there a way to filter previous search results WITHOUT having to submit a new query with additional keywords/facets?
Thank you.
Nope, there's not - well, not reliably. You could filter search results manually, but Sphinx paginates results, so you're not generally dealing with the full set of initial matches, which means there could be valid filtered responses you won't see.
To keep things reliable, it's best to run the query against Sphinx again.
I am using twitter search api
https://dev.twitter.com/docs/using-search
I want to search for a word (exact match) and count the no of mentions or hashtags of that word (exact match).
I have tried q="json" OR #json OR #json but they retun something like json_decode or #json_dude but I want exact match.
Also, is there anyway to count the no of retweets without 'popular' search ?
In the page you linked, see the paragraph of "Search Operators", the 2nd example is what you are looking for. It says you sould use "
just like in a google search.
You cannot do exact search like this, there's no way.
You can do exact search only when you are not using `OR'
i.e. you can do q="json" but not q="json" OR #json OR #json.
But you can count the retweets by looking at field in_reply_to_status_id_str. Each in_reply_to_status_id_str represents that its a reply against a tweet , thus a retweet :)