Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Francesco 9 posts 89 karma points
    Jun 09, 2022 @ 09:35
    Francesco
    0

    Lucene query with LIKE in Multiple Content Picker

    Hi there,

    I'm having trouble with Lucene query, specifically when I try to search an UDI in a Multiple Content Picker property.

    This is the entity I'm trying to retrieve from the query:

    enter image description here

    My query is:

    __NodeTypeAlias:event AND speakers:"umb://document/11886ddef2a546f38e258bd99dd8418d"
    

    This query return only nodes that have only umb://document/11886ddef2a546f38e258bd99dd8418d in the "speakers" property.

    I would like to retrieve nodes that have that UDI alone, or with other UDIs before or with other UDIs after.

    What am I doing wrong?

    This is my first question on this forum, thanks for all reply!

  • Dennis 75 posts 398 karma points MVP 2x
    Jun 28, 2022 @ 14:34
    Dennis
    100

    Hi Francesco,

    I've noticed this as well and I believe it is due to how the 'speakers' field is saved in the index (it doesn't understand the comma).

    What you should do to make this work, is hook into the indexing event and add a custom field with the values properly separated. Then you can use your search query on the custom field.

Please Sign in or register to post replies

Write your reply to:

Draft