我想索引具有JSON数组作为内容的页面。
如果我尝试使用命令发布它:
bin / post -c gettingstarted http://localhost/index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b -recursive 1 -delay 1
在页面中,有类似的内容:
[ { " @ HREF":" /index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b/unid/4E584A172BD984BFC125802A005E0FF7" ;, " @链路&#34 ;: { " REL":"文件&#34 ;, " HREF":" /index.nsf/api/data/documents/unid/4E584A172BD984BFC125802A005E0FF7" }, " @的EntryID":" 1-4E584A172BD984BFC125802A005E0FF7&#34 ;, " @ UNID":" 4E584A172BD984BFC125802A005E0FF7&#34 ;, " @ noteid":" 8F6&#34 ;, " @位置":" 1&#34 ;, " @兄弟姐妹":5, " @形式":"书&#34 ;, "作者":" ivo andri \ u0107", " title":" na drini \ u0107uprija", " ISBN":" 121233131&#34 ;, "分":5 }, { " @ HREF":" /index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b/unid/9042F3868F83AAB2C125802A005E17DC" ;, " @链路&#34 ;: { " REL":"文件&#34 ;, " HREF":" /index.nsf/api/data/documents/unid/9042F3868F83AAB2C125802A005E17DC" }, " @的EntryID":" 2-9042F3868F83AAB2C125802A005E17DC&#34 ;, " @ UNID":" 9042F3868F83AAB2C125802A005E17DC&#34 ;, " @ noteid":" 8FA&#34 ;, " @位置":" 2&#34 ;, " @兄弟姐妹":5, " @形式":"书&#34 ;, "作者":" borislav peki \ u0107", "标题":" besnilo&#34 ;, #&34; ISBN":" 3434233434&#34 ;, "分":5 }, { " @ HREF":" /index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b/unid/B5955CA4DB7621D6C125802A006A390A" ;, " @链路&#34 ;: { " REL":"文件&#34 ;, " HREF":" /index.nsf/api/data/documents/unid/B5955CA4DB7621D6C125802A006A390A" }, " @的EntryID":" 4- B5955CA4DB7621D6C125802A006A390A&#34 ;, " @ UNID":" B5955CA4DB7621D6C125802A006A390A&#34 ;, " @ noteid":" 902&#34 ;, " @位置":" 4&#34 ;, " @兄弟姐妹":5, " @形式":"书&#34 ;, "作者":" Harper Li", " title":" Ubiti pticu rugalicu", #&34; ISBN":" 654646464564&#34 ;, "分&#34:4 }, { " @ HREF":" /index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b/unid/FE2DBDAAA51892FCC125802A006A7A17" ;, " @链路&#34 ;: { " REL":"文件&#34 ;, " HREF":" /index.nsf/api/data/documents/unid/FE2DBDAAA51892FCC125802A006A7A17" }, " @的EntryID":" 5-FE2DBDAAA51892FCC125802A006A7A17&#34 ;, " @ UNID":" FE2DBDAAA51892FCC125802A006A7A17&#34 ;, " @ noteid":" 906&#34 ;, " @位置":" 5&#34 ;, " @兄弟姐妹":5, " @形式":"书&#34 ;, "作者":" Peki \ u0107&#34 ;, "标题":"阿特兰蒂达&#34 ;, #&34; ISBN":" 5&#34 ;, "分":3 } ]
搜索有效,但返回"整个页面"而且我无法通过JSON字段进行搜索。看起来索引没有将页面拆分为文档...
为了使事情更清楚,我想自动完成可以这样做的事情:
wget http://localhost/index.nsf/api/data/collections/unid/93867b71911dd9b6c125802a005dba7b -O put.json
bin / post -c gettingstarted put.json