Type search_excerpt
Discussion
This type represents a search result row. This type is meant for display and subsequent queries for questions, answers or similar will typically be needed when leaving a "search context".
The equivalent_tag_search field is set if the request would normally be satisified by a redirect on the queried site.
Fields
body
string
item_type
one of
question
, or answer
score
integer
title
string
Fields marked with are included in the default filter, those marked with are excluded in the default filter.
Examples
► Question
{"tags":["google-chrome-app"],"question_score":3,"is_accepted":false,"has_accepted_answer":false,"answer_count":3,"is_answered":true,"question_id":21443236,"item_type":"question","score":3,"last_activity_date":1734800647,"creation_date":1734800647,"body":"I am following the guide here https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/Installation.md to create a Chrome App that runs on Android. I have everything set up correctly on a Windows 7 machine I think. I can run the cca checkenv and this works fine. But when I go to actually creating the app I get\n\nC:\\Users\\wilblack\\Projects>cca create TestApp --copy-from=C:\\Users\\wilblack\\Projects\\chromeapp_demo\\manifest.json\ncca v0.0.3\n## Checking that tools are installed\nAndroid SDK detected.\nSearching for Chrome app source in C:\\Users\\wilblack\\Projects\\chromeapp_demo\n## Creating Your Application\ncreate TestApp Hello World! Hello World!\nWriting config.xml\nChanging directory to: C:\\Users\\wilblack\\Projects\\TestApp \nplatform add android\nplugin add org.apache.cordova.file\nError: Fetching plugin failed: Error: Cannot find module 'delayed-stream'\n\n\nI think it has something to do with Node.js but I am not sure. Does anyone have any suggestions?\n","excerpt":"\n## Creating Your Application\ncreate TestApp Hello World! Hello World!\nWriting config.xml\nChanging directory to: C:\\Users\\wilblack\\Projects\\TestApp \nplatform add android\nplugin add org.apache.cordova.file\nError … ","title":"Chrome App: When I run cca create I get: Cannot find module 'delayed-stream'"}
► Answer
{"question_score":1,"is_accepted":false,"answer_id":21565252,"is_answered":false,"question_id":21565147,"item_type":"answer","score":0,"last_activity_date":1734800647,"creation_date":1734800647,"body":"This can be solved by approaching it differently...\n\nhttp://jsfiddle.net/MattLo/Nz6BD/\n\nfunction entry () {\n this.title = null;\n this.info = [];\n}\n\nentry.prototype.setInfo = function (info) {\n this.info.push({name: info});\n\n return this;\n};\n\nentry.prototype.setTitle = function (title) {\n this.title = title;\n\n return this;\n}\n\nvar e1 = (new entry)\n .setInfo('foo')\n .setInfo('bar')\n .setTitle('Hello World!');\n\n","excerpt":") {\n this.info.push({name: info});\n\n return this;\n};\n\nentry.prototype.setTitle = function (title) {\n this.title = title;\n\n return this;\n}\n\nvar e1 = (new entry)\n .setInfo('foo')\n .setInfo('bar')\n .setTitle('Hello World!');\n\n … ","title":"Passing multiple objects to constructor function"}
Methods That Return This Type
search/excerpts 2.2