Search for words with a Dash in Twitter API - search

How can I get the results for the phrase "E-Contact" In a normal twitter search it returns results with E-Contact but also results without the dash anything but
The same happens for a Williams-Sonoma search I tried using quotes and also replacing the dash with the URL encoded %2D but still no luck.

I don't think you can. You will have to manually filter the search results on your side.

Related

Can I search hashtags on twitter with wildcards

I'm hoping to find a way to search for hashtags on twitter that contain the characters 'SF'. For example, there are tweets that have #LVvsSF (yes I'm a 9er fan!) and I'd like to come up with a search string that would pull this tweet if it has the above hashtag or even #SEAvsSF.
I have tried '%23vsSF' and '#%23vsSF' but neither are working.
Thanks,
Wildcards in Twitter search work only on phrases, inside quotes, with spaces on both sides. For example:
"this is the * time today that"
try it...
To the best of my knowledge, it is impossible to search Twitter (web app or API) using wildcards in a sigle word or hashtag.

wikipedia api search titles generator

Trying to search tiles through the api using a generator.
I notice that there are two possible generators, with both I have problems:
prefix search - doesn't work well if I have multiple words and the order is reversed in the query (for example "brian adams" would return an answer, however "adams brian" does not
search - seems to not allow searching by titles, only by text which returns low-quality results.
Anyone knows of a way around this?
"srwhat=title" is disabled, so you should use "intitle:" in your search query:
https://en.wikipedia.org/w/api.php?action=query&list=search&srnamespace=0&srprop=timestamp&&srsearch=intitle:adams%20brian
for more info please check this page:
https://www.mediawiki.org/wiki/API:Search

Exact match in google search

I am trying to make an application which find all the copied code in a project.
But basically my question is purely related to google search.
I made a search for the keyword "public void bubbleSort(int[] arr){"
and this was the result.
In the first page of search results, only the last url makes a perfect match with my keyword.
Can i tell google with some search keywords so that it will give more importance to pages with an exact match of my search keyword?
although the plus sign, +, is no longer an available Google search filter, you can use quotes, or after running the query selecting Search Tools and then verbatim under the All Results drop down.
You can also search the Google code archives, https://code.google.com/ or try some of the other code search engines around the Internet.
+"public void bubbleSort(int[] arr){"
the plus sign means to include this term no matter what. the quotes turn the loosely coupled words into a single term.
for a full list of Google syntax operators:
[web]: https://support.google.com/websearch/answer/136861?hl=en

API returning crazy results for 2 word searches

Starting fairly recently, the API has started returning crazy results for 2 word searches. For example:
https://api.foursquare.com/v2/venues/search?oauth_token=XXX&query=local_edition&radius=35000&ll=37.8%2C-122.4&limit=20&intent=browse
Will only return things matching 'ion' it seems. If I search for either 'local' or 'edition', the intended location is one of the first few results.
Is it time to stop replacing spaces with underscores? For a while, that was the only way to get reasonable results when searching for multiple words. (see this thread for more information: What's the best way to tune my Foursquare API search queries?)
I'm not sure why you're getting results for "ion", but if you replace the underscore with a plus sign or %20, it seems to work fine for me:
https://developer.foursquare.com/docs/explore#req=venues/search%3Fquery%3Dlocal+edition%26radius%3D35000%26ll%3D37.8%252C-122.4%26limit%3D20%26intent%3Dbrowse
https://developer.foursquare.com/docs/explore#req=venues/search%3Fquery%3Dlocal%2520edition%26radius%3D35000%26ll%3D37.8%252C-122.4%26limit%3D20%26intent%3Dbrowse

Bing: search - match only exact literal strings?

I'm using PHP and the Bing API to search for certain domainnames.
I want only the results that are an EXACT match.
Somehow Bing returns results that do not match exactly.
When I search for :
"www.gebouw.nl"
I sometimes also get results like "www.gprgebouw.nl"
Is there a way to tell Bing to search only for EXACT matches?
Try adding a plus sign to your query. e.g. +www.gebouw.nl which is %2Bwww.gebouw.nl when url encoded
http://www.google.com/support/websearch/bin/answer.py?answer=136861
http://onlinehelp.microsoft.com/en-us/bing/ff808438.aspx
Could WebSearchOptions='DisableQueryAlterations' be the key to this?
As per API documentation, "DisableQueryAlterations Prevents Bing from altering the query string. Such alteration may have been done to correct apparent spelling error in the original query string."

Resources