小编sio*_*iom的帖子

Solr:使用块连接子查询解析器

目前,我按照此处所述评估 Block Join Children Query Parser 。

因此,我创建了以下集合:

curl "http://localhost:8983/solr/admin/collections?action=CREATE&name=nestedPerson&numShards=6"`
Run Code Online (Sandbox Code Playgroud)

然后我插入了这两个文件:

curl http://localhost:8983/solr/nestedPerson/update?commitWithin=3000 -d '<add>
        <doc>
        <field name="id">p1</field>
        <field name="deceased">false</field>
        <doc>
            <field name="id">c1</field>
            <field name="firstName">Bob</field>
        </doc>
        </doc>
        <doc>
        <field name="id">p2</field>
        <field name="deceased">true</field>
        <doc>
            <field name="id">c2</field>
            <field name="firstName">Max</field>
        </doc>
        </doc>
    </add>'
Run Code Online (Sandbox Code Playgroud)

现在我发出这个查询:

{!child of="id:p1"}firstName:Bob
Run Code Online (Sandbox Code Playgroud)

不幸的是,这会导致此错误:

"msg": "Parent query yields document which is not matched by parents filter, docID=0",
Run Code Online (Sandbox Code Playgroud)

父查询(我猜是该部分id:p1的意思)如何生成与过滤器不匹配的文档?

java solr solrcloud

4
推荐指数
1
解决办法
4671
查看次数

如何使用powershell应用更改的代理设置(AutoConfigURL)

我的代理使用IE中LAN设置对话框中的"自动配置脚本"选项进行配置.为了切换这个设置,我编写了以下powershell脚本:

$proxyScript = 'http://example.com/files/wish.pac'
$debug = $TRUE
$currentValue = Get-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -ErrorAction SilentlyContinue

if($debug)
{
    Get-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings"
}

if([string]::IsNullOrEmpty($currentValue))
{
    Write-Host "Proxy-AutoConfigURL is actually disabled"
    Set-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -value $proxyScript
    Write-Host "Proxy-AutoConfigURL is enabled: " + $proxyScript
}
else
{
    Write-Host "Proxy-AutoConfigURL is actually enabled"
    Remove-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL
    Write-Host "Proxy-AutoConfigURL is disabled."
}

if($debug)
{
    Get-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings"
}
Run Code Online (Sandbox Code Playgroud)

在执行脚本后,IE的LAN设置对话框中的值已更改,因此脚本似乎有效.但它们似乎不适用于使用系统范围设置的IE和其他应用程序.只有当我单击LAN设置对话框中的"确定"按钮时,才会应用更新的值.

有没有办法使用PowerShell自动应用更改的设置?

powershell proxy internet-explorer

3
推荐指数
1
解决办法
5508
查看次数

标签 统计

internet-explorer ×1

java ×1

powershell ×1

proxy ×1

solr ×1

solrcloud ×1