弹性搜索iPEX内部

发布于 2025-02-11 10:03:14 字数 1103 浏览 2 评论 0 原文

我想编写一个iPEX,以禁用包含特定电子邮件ID的特定用户ID帐户。 假设如果电子邮件

    select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'

这将使我返回包含电子邮件的用户ID,href =“/cdn-cgi/l/li/email-email-pretection” class =“ __ cf_email__” data-cfemail __” data-cfemail =“ 1C6465665C7D7E7F327F7371”> [email  protected]

并禁用一个帐户,我可以运行iPex,因为

      UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true];
      xyz;;true

现在我希望将Felxi Serach和Impex都组合在一起,并且应该将flexisearch组合起来,并且应该返回userid and impex Part and impex Part禁用该帐户,我尝试了下面的iMpex,但没有做任何事情:

     UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true]
     "#% impex.exportItemsFlexibleSearch(""select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'"");"

事先感谢您的帮助。

I want to write an impex to disable an account with an particular user-id which contains the particular email id.
let's say if email [email protected] is associated with the user id xyx then xyz account should be soft disabled (loginDisabled should be true).
For getting the xyz user-id i gonna run the flexi search :

    select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'

this will return me the user-ids containing the email as [email protected]

and to disable a account i can run the impex as :

      UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true];
      xyz;;true

Now i want that both the Felxi serach and impex should be combined and the flexisearch should return the userid and impex part should disable the account, i have tried below impex but it didn't did anything:

     UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true]
     "#% impex.exportItemsFlexibleSearch(""select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'"");"

Thanks in advance for the help.

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

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

发布评论

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

评论(3

吻泪 2025-02-18 10:03:14

我尝试运行

更新员工; pk [unique = true]; groups(uid); logIndisabled [default = true]“#%impex.exportItemsflexiblesearch(”“”从{emp}中选择{emp.pk},其中{emp}其中{ emp.email} ='

,但没有运气,没有任何问题就可以运行

I tried running

UPDATE Employee;PK[unique=True];groups(uid);loginDisabled[default=true] "#% impex.exportItemsFlexibleSearch("" SELECT {emp.pk} FROM { Employee AS emp} WHERE {emp.email} = '[email protected]' "");"

But no luck the impex is running without any issue but does not reflect the changes in backoffice

蘸点软妹酱 2025-02-18 10:03:14

我建议使用一个时髦的脚本而不是灵活的搜索。

impex.exportitemsflexiblesearch 是仅用于导出的名称,因此您无法在导入中使用它。如果要使用Impex,则应首先使用 impex.exportitemsflexiblesearch 导出,更改CSV中的值,然后再次重新介绍。

I would suggest using a groovy script instead of flexible search.

The impex.exportItemsFlexibleSearch is, as the name say used for export only, so you are not be able to use it in import. If you want to use impex, then you should export first using impex.exportItemsFlexibleSearch, change the value in the csv, then re-import it again.

橘虞初梦 2025-02-18 10:03:14

对不起,我误解了这个问题。我以为您正在尝试导出数据。

这就是您使用Impex禁用登录的方式:

UPDATE Employee;uid[unique=true];loginDisabled[default=true]
;[email protected];

I'm sorry I misunderstood the question. I thought you were trying to export the data.

This is how you disable the log-in using impex:

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