nested

Elasticsearch Updating nested objects

扶醉桌前 提交于 2019-12-06 05:06:18
I found out the same problem in internet, but i dont understand a solution. The problem is, how can i update a nestend document without to update all array. Thank you so much. Here is a nasted document "links": [ [ { "note_link_id": "1", "user_id": "11", "creation": "2016-11-15T11:21:10", "modification": "2016-11-15T13:38:04", "to_asset": "100", "from_asset": "99", "comment": "Comment 1." }, { "note_link_id": "2", "user_id": "11", "creation": "2016-11-15T13:37:04", "modification": "2016-11-15T13:37:27", "to_asset": "101", "from_asset": "99", "comment": "Comment 2." }, { "note_link_id": "3",

Batch File Nested For /L Loops and Exiting them

和自甴很熟 提交于 2019-12-06 04:31:46
SETLOCAL ENABLEDELAYEDEXPANSION set list=A B C D E FOR %%a IN (%list%) DO ( start %%a.exe > ouput_%%a.txt echo 120, 30 second loops = 60 min FOR /L %%i IN (1,1,120) DO ( REM pause for 30 seconds ping 1.1.1.1 -n 1 -w 30000 > nul echo find the running executable tasklist | findstr %%a.exe > nul REM !ERRORLEVEL! REM exit the script if no executable is found (i.e it has run successfully) if !ERRORLEVEL! equ 1 goto success ) REM kill executable if we haven't exited yet taskkill /f /im %%a.exe :success ) This code doesn't go through the for loops as I expect them to. I tried to do something like

Creating Multidimensional Nested Array from MySQL Result with Duplicate Values (PHP)

本秂侑毒 提交于 2019-12-06 04:08:10
问题 I currently am pulling menu data out of our database using the PDO fetchAll() function. Doing so puts each row of the query results into an array in the following structure: Array ( [0] => Array ( [MenuId] => mmnlinlm08l6r7e8ju53n1f58 [MenuName] => Main Menu [SectionId] => eq44ip4y7qqexzqd7kjsdwh5p [SubmenuName] => Salads & Appetizers [ItemName] => Tomato Salad [Description] => Cucumbers, peppers, scallions and cured tuna [Price] => $7.00) [1] => Array ( [MenuId] => mmnlinlm08l6r7e8ju53n1f58

jquery: mouseout applies to nested elements

拟墨画扇 提交于 2019-12-06 04:05:24
ul with links nested in a div layer. mouse pointer goes over .title , ul is shown. the problem: mouseout() applies to nested elements mouseout() is for the div <div> <a class="title">Section A</a> <ul> <li><a href=''>link 1</a></li> <li><a href=''>link 2</a></li> <li><a href=''>link 3</a></li> </ul> </div> $('.title').mouseover(function() { $('ul').slideDown(); }) $('div').mouseout(function(){ $('ul').slideUp(); }); Try $('selector').mouseleave(function(){}); 来源: https://stackoverflow.com/questions/3867128/jquery-mouseout-applies-to-nested-elements

RestKit: Dynamic Nested Attributes with an Array

浪尽此生 提交于 2019-12-06 03:48:58
I'm struggling to find a way to map some JSON into RestKit. This is an example of what I'm looking at: "results":{ "Test1":[ { "id":1, "name":"Test 1 here.", "language":"English", "type: "Test1" } ], "Test2":[ { "id":3, "name":"Another test 2", "language":"English", "type":"Test2" }, { "id":8, "name":"More test 2", "language":"English", "type":"Test2" }, { "id":49, "name":"foo", "language":"English", "type":"Test2" } ] } Ideally, the JSON wouldn't include the extra redundant layer of "type" as a key, but such is life. I'd want RestKit to return 4 objects under "results" of type: @interface

meteor iron-router nested routes

醉酒当歌 提交于 2019-12-06 03:14:34
问题 I have two meteor collections with a one-to-many relationship: buildings and spaces On my building page, I want to show the spaces related to the building. For now, I did it this way: buildingsRoute.coffee BuildingController = RouteController.extend(template: "buildings") Router.map -> @route "building", path: "/buildings/:_id" waitOn: -> subs.subscribe "allBuildings" subs.subscribe "allSpaces" data: -> building: Buildings.findOne(@params._id) spaces: Spaces.find({building_id: @params._id})

Passing compile-time state between nested macros in Clojure

ぐ巨炮叔叔 提交于 2019-12-06 02:49:21
问题 I'm trying to write a macro that can be used both in a global and nested way, like so: ;;; global: (do-stuff 1) ;;; nested, within a "with-context" block: (with-context {:foo :bar} (do-stuff 2) (do-stuff 3)) When used in the nested way, do-stuff should have access to {:foo :bar} set by with-context . I've been able to implement it like this: (def ^:dynamic *ctx* nil) (defmacro with-context [ctx & body] `(binding [*ctx* ~ctx] (do ~@body))) (defmacro do-stuff [v] `(if *ctx* (println "within

Can't compile nested less files with Web Compiler 2015

人盡茶涼 提交于 2019-12-06 02:30:49
well, I was quite surprised when installing Web Essentials 2015 for Visual Studio 2015 that it didn't include a less compiler anymore: "Web Essentials 2015 no longer contains features for bundling and minifying of JS, CSS and HTML files as well as compiling LESS". Everything worked fine before with Visual Studio 2013. So I downloaded Web Compiler 2015, as it is the new compiler from Mads Kristensen. But, after adding all the needed files to be compiled to the compilerconfig.json, I have an error on compilation that it doesn't recognize my variables anymore nor my mixins! Here's my site.less: /

Retrieving Hierarchical/Nested Data From CouchDB

寵の児 提交于 2019-12-06 01:41:29
问题 I'm pretty new to couchDB and even after reading (latest archive as now deleted) http://wiki.apache.org/couchdb/How_to_store_hierarchical_data (via ‘Store the full path to each node as an attribute in that node's document’) it's still not clicking just yet. Instead of using the full path pattern as described in the wiki I'm hoping to keep track of children as an array of UUIDs and the parent as a single UUID. I'm leaning towards this pattern so I can maintain the order of children by their

Is it possible to stop child click events propagating to parents when handled by .live()?

99封情书 提交于 2019-12-06 00:01:57
问题 I have 'Back Board' on my images and content over here: http://syndex.me So basically, you click on an image, it will overlay a info panel above the clicked content. I want to do two things: Click on the background of the site to fade out the currently opened info panel Be able to click on a tag, link, or social icon within the info panel without triggering it's parent function, which is too fade out again. I cannot use stopPropagation for the child click being superseded by the parent click