Google sitelink search box [closed] - seo

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
We are implementing search box within the search result in Google for our site.
We have our own search feature on website, and dont want to use Google custom search.
We are following instructions on the following page, but finding it difficult to set it up.
Google developer site.
I added the following JSON-LD in the head, but it is not working
<script type="application/ld+json">
{
"#context": "http://schema.org",
"#type": "WebSite",
"url": "http://www.oursite.com.au/",
"potentialAction": {
"#type": "SearchAction",
"target": "http://www.oursite.com.au/search.aspx?keyword={search_term}",
"query-input": "required name=search_term"
}
</script
I was wondering if I set up the code correctly?

There is one possible error with your syntax, which is that you are missing a last closing bracket. Your script is also not closed properly as well. I'm guessing it is possible both of these issues could be from copying into SO.
For good measure, it should look like:
<script type="application/ld+json">
{
"#context": "http://schema.org",
"#type": "WebSite",
"url": "http://www.oursite.com.au/",
"potentialAction": {
"#type": "SearchAction",
"target": "http://www.oursite.com.au/search.aspx?keyword={search_term}",
"query-input": "required name=search_term"
}
}
</script>
After that, can you confirm the following:
http://www.oursite.com.au/search.aspx?keyword=test would successfully perform a search on your site for the term "test"? Per the spec does that search sit on the same domain you have the code on?
Have you allowed your site enough time to index after making these changes?

Related

Migrate from Azure DevOps 2020 on prem german to the english version [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 months ago.
Improve this question
long time ago we made a bad decision to install the German version of the TFS Server. We upgraded to every new version of the tfs and now Azure DevOps Server 2020 but had no chance to change the language. Now we want to migrate to VSTS, but therefore we need an English version. As far as i know, MS supports only a migration of English DevOps Server to VSTS.
Finding this tool and reading the line "v9.0 - Added support for migration between other language versions of Azure DevOps. Developed for German -> English", we hope to have a solution for our problem.
Searching the docs, I could not find any hints how to do, even start with it.
Is there any documentation how to do it?
Regards Bernhard
This is not documented but you need to look at the LanguageMaps and change the Source LanguageMaps to the words that your TFS uses for 'Area' or 'Iteration'.
"Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/nkdagility-preview/",
"Project": "myProjectName",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"PersonalAccessToken": "",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
},
In Spanish would be:
"Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/nkdagility-preview/",
"Project": "myProjectName",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"PersonalAccessToken": "",
"LanguageMaps": {
"AreaPath": "Área",
"IterationPath": "Iteración"
}
},

Undefined 'model' property of Keystonejs List object [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I created an example with a very simple list (of countries) and created api routes based on the instructions found here: https://gist.github.com/JedWatson/9741171
server.js:
app.get('/api/countries', keystone.middleware.api, routes.api.countries.list);
routes/api/countries.js:
import keystone from 'keystone';
export function list(req, res) {
keystone.List('Country').model.find((err, items) => {
if (err) return res.apiError('database error', err);
res.apiResponse({
countries: items
});
});
}
I get the error Cannot read property 'find' of undefined, the List object exists but it doesn't have a model property. Does anyone know why this is? The keystone admin UI works as expected and there are several objects in the database.
The problem was that I used keystone.List (capitalized) instead of keystone.list. Hopefully someone else will be helped by this answer.

Download My files with REST CALLS CKAN [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'AM new in CKAN, please tell me if its possible to download my ckan datasets ( my files) using the ckan API.
Regards.
You can make a call to CKAN's API action 'package_show' to see the details of a dataset, which gives you the 'resources' containing the URLs of the data files. Then you can use these URLs to download the data directly from wherever they are stored.
e.g. doing a package_show from the CKAN API by GETting this URL: https://data.gov.uk/api/3/action/package_show?id=index-of-multiple-deprivation
{
"help": "http://data.gov.uk/api/3/action/help_show?name=package_show",
"success": true,
"result": {
...
"resources": [
...
{
"description": "2010: Sub-domains living environment",
...
"url": "https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/6882/1871676.xls",
}
...
]
}
}
and clearly you can download this spreadsheet from https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/6882/1871676.xls

FIWARE Lab Store widget list errors and publishing [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
lately the FIWARE Lab store doesn't seem to work for me. The first page with Top Rated and Latest offerings loads ok, but after clicking on widgets/mashups tab, it produces an error window:
get() returned more than one Purchase -- it returned 2! Lookup parameters
were {'customer': <django.utils.functional.SimpleLazyObject object at
0x7fd9e41a3750>, 'organization_owned': False, 'offering': <Offering: EntityService>}
Also, when trying to publish a widget, after choosing to upload to the FIWARE Lab Store, the POST request to https://mashup.lab.fiware.org/api/markets/publish fails with code 502 and the following response:
{"description": "Something went wrong (see details for more info)",
"details": {"FIWARE Lab": "Unexpected response from Store"}}
I know that some software components have been updated lately so I understand that this might be a transitional bug. Thanks for your help if you can fix it.
As you pointed, that was a temporal problem. You should be able to use the Store portal again.
Anyway, StackOverflow is for asking questions related to programming (visit the help center for more info), so it's better to use the contact info published on the FIWARE catalogue or the fiware-lab-help#lists.fiware.org for this kind of questions/support.

Is there any API for drawing wikipedia pageview data [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
How can I get the daily pageview of wikipedia page.
for example, I want to get the history of daily page view of this page http://en.wikipedia.org/wiki/Programming
Is it possible?
There doesn't seem to be an API for it, but a website exists at stats.grok.se that processes the (very large) files from http://dammit.lt/wikistats/.
There is a new (December 2015) API here: https://wikimedia.org/api/rest_v1/?doc
For example, to get the number of views of http://en.wiktionary.org/beauty on 2/12/2015:
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wiktionary/all-access/all-agents/beauty/daily/20151202/20151203
Response:
{
"items": [
{
"project": "en.wiktionary",
"article": "beauty",
"granularity": "daily",
"timestamp": "2015120200",
"access": "all-access",
"agent": "all-agents",
"views": 34
}
]
}
You can also see top 1000 pages on a wiki (/metrics/pageviews/top/) and aggregate pageviews on a wiki (/metrics/pageviews/aggregate/).
There are (at least) two new initiatives to build an API around Wikipedia pageviews: https://www.mediawiki.org/wiki/Analytics/Hypercube and http://www.mediawiki.org/wiki/User:GWicke/Notes/Storage. Both are in the planning stage but feel free to chime in with specific use cases.