Alfresco FTS 通配符

发布于 2024-12-23 11:02:40 字数 1268 浏览 4 评论 0原文

我在露天有一个具有以下类型的模型:

<type name="namedobject">
  <title>NamedObject</title>
  <parent>object</parent>
  <properties>
    <property name="objectName">
      <type>d:text</type>
      <index enabled="true">
        <atomic>true</atomic>
        <stored>false</stored>
        <tokenised>both</tokenised>
      </index>
    </property>
  </properties>
</type>

A 有一个这种类型的对象,其中 objectName = James Warlick。我想使用露天 FTS 和通配符找到它。我尝试在节点浏览器中执行以下查询:

objectName: james     => OK
objectName: *james*   => not found (?)
objectName: *jame*    => OK
objectName: *ames     => not found (?)
objectName: *ame      => OK

我想所有 5 个查询都必须返回此对象,但 2 和 4 不起作用。我不明白原因。 我读过这篇文章,但没有帮助。 我使用 Alfresco Community - v3.4.0

谢谢

更新

尝试使用引号:“james”。结果:

objectName: "james"      => OK
objectName: "*james*"    => OK
objectName: "*jame*"     => not found (?)
objectName: "*ames"      => not found (?)

I have a model in alfresco with following type:

<type name="namedobject">
  <title>NamedObject</title>
  <parent>object</parent>
  <properties>
    <property name="objectName">
      <type>d:text</type>
      <index enabled="true">
        <atomic>true</atomic>
        <stored>false</stored>
        <tokenised>both</tokenised>
      </index>
    </property>
  </properties>
</type>

A have an object of this type with objectName = James Warlick. I want to find it using alfresco FTS and wildcards. I tried following queries in node browser:

objectName: james     => OK
objectName: *james*   => not found (?)
objectName: *jame*    => OK
objectName: *ames     => not found (?)
objectName: *ame      => OK

I suppose all 5 queries must return this object but 2 and 4 don't work. I don't understand the reason.
I've read this article, but it didn't help.
I use Alfresco Community - v3.4.0

Thank you

UPDATE

Tried with quotes: "james". Results:

objectName: "james"      => OK
objectName: "*james*"    => OK
objectName: "*jame*"     => not found (?)
objectName: "*ames"      => not found (?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半步萧音过轻尘 2024-12-30 11:02:40

您是否尝试过在关键字周围加引号? --> “詹姆斯”和“*ames”?

Have you tried putting quotes around the keyword? --> "james" and "*ames"?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文