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

answer_count
integer
may be absent

answer_id
integer, refers to an answer
may be absent

body
string

closed_date

community_owned_date

creation_date

equivalent_tag_search
an array of strings
may be absent

excerpt
string
unchanged in unsafe filters

has_accepted_answer
boolean
may be absent

is_accepted
boolean
may be absent

is_answered
boolean
may be absent

item_type
one of question, or answer

last_activity_date

last_activity_user

locked_date

owner

question_id
integer, refers to a question
may be absent

question_score
integer
may be absent

score
integer

tags
an array of strings
may be absent

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":1713523508,"creation_date":1713523508,"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":1713523508,"creation_date":1713523508,"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