How to get the file excerpts for search using box api? - search

http://developers.box.com/docs/#search
This api returns only the files/folders related to the search query. How do I show the search excerpts?
Should I integrate solr/lucene for search?
EDIT:
I mean excerpt from the content of the files/documents. The search snippets that you see like in google.
Example:
http://www.bestrank.com/files/uploads/39/image/anatomy-of-a-search-engine-snippet.png
The description in this case.

The Box API currently does not provide this in the search response, but we're looking at adding it sometime in the future.

Related

Custom field info. in Search Engines

Can I show custom field info. on Search Engine Pages?
For example, when I type the keyword "google" on Google Search Engine, along with the regular search results, I also get some more information such as CEO, Founded, Headquarters, Founder, etc.. on the right sidebar, similar to the below image.
And I wondered if I could ever show up my company information also like that.
Any help would be greatly appreciated.
Yes, if you have a website accessible by Google's indexing bots and your page(s) contain Structured Data Markup providing such info, more specifically by Customizing the Knowledge Graph for your company (and provided that Google's indexing service considers the info relevant enough to show up in search results, of course).

search news by keyword using Google CSE

I want to search results from "Google News" via "Google Custom Search Engine Api (CSE)" based on location/country and keyword.
I tried using it by setting up a CSE which only searches inside the site "news.google.com" but then it only returns old news article clippings. Not sure how to grab the recent news articles. Also, i noticed that if we set schema type NewsArticle, its not accurate as not all news sites having this schema type of page.
I knew that there is a workaround to use RSS feeds for getting google news and it returns results as required. Example - https://news.google.com/news/feeds?hl=en&q=corruption&ie=utf-8&num=10&output=rss . But, I afraid this is not a correct and recommended way to get go with.
Will appreciate if anyone could advice right setting in CSE or other recommended solution.

Filter Search and Free text search using Foursquare api

We are currently developing a food/restaurant search on our website using Foursquare API.
We have hit an issue which is the free text search. If I would like to search for a specific restaurant/food venue eg. "Lucilda Pizzeria" will it allow me to do so?
Can we use the Food Category in the Category tree https://developer.foursquare.com/categorytree to allow people to filter the venues? Eg. "Minnesota" - "Bagel Shop"
Hope anyone can please clear up these questions for me.
Thanks to anyone who will get back to me with an answer.
Take a look at the getting started guide to search: https://developer.foursquare.com/start, then read about the search and explore endpoints. In your use case, I would recommend making an explore API request with the intent=food parameter passed in.

Search keyword from google to my site

If user search a particular keyword in google and google returns set of results with url. Now if user comes to my website after clicking any result, then how can I know that search keyword.
In bing and yahoo I am able to get this using "q" and "p" respectively. Like "http://www.bing.com/search?q=......" and "http://in.search.yahoo.com/search......?p=......&.....".
But in google I am unable to find any parameters to get search keyword. I am using php.
Please help.
EDIT:
It is not possible to get the search string once you click on a search result.
if I search for stackoverflow.. this is what I get.. link not showing up properly in a comment..
so adding an answer.. you should be able to "?q=" as well for google
https://www.google.com/search?q=stackoverflow&rlz=1C1CHFX_enUS524US524&oq=sta&aqs=chrome.3.69i60l3j69i59j69i57j69i65.2857j0&sourceid=chrome&ie=UTF-8

Get Google Discussion search results

I would like go get the results retrieved by Google Discussion Search, like this. Notice the Discussion tab on the bottom left side.
I prefer to use Python, and the Google Custom Search API, but I am not sure if they support the Discussion search, so any option is welcome.
Does not appear to be any way the API results can be tailored to fetch 'discussion' results but the API can filter by filetype, so why not try a q query looking for the RSS feeds produced by forums?
https://www.googleapis.com/customsearch/v1?key= your key &cx= your_id &q=diablo 3 forum RSS&fileType=rss&alt=json
Many tend to have a latest/ last post feed and monitoring these for changes should produce a good stream of data.

Resources