Skip to main content
RafaelSRosa
Participant
September 22, 2018
Answered

Busca por várias palavras chaves composta

  • September 22, 2018
  • 1 reply
  • 372 views

Olá, no meu fluxo de trabalho, utilizamos palavras chaves com o nome completo da pessoa.

Imaginem 100 fotos de 30 pessoas diferentes, cada pessoa tem seu nome completo como palavra chave e preciso buscar as fotos de 2 pessoas no meio dessas. As pessoas são: Rafael Rosa, Anny Melo. Quero buscá-las de uma vez, e não consigo. pois em qualquer regra da palavra chave, não consigo filtrar os nomes completos separados por virgula, pois se tiver por exemplo, um Rafael Santos, se eu buscar na regra contem, ele localiza os dois. Precisava saber se tem uma forma de eu buscar a palavra inteira, tipo assim: (Rafael Rosa),(Anny Melo) e ele me retornasse somente esses dois, e não os outros rafael e as outras anny. Pelo que pesquisei e tentei todas as combinações possíveis, não tem como, e isso seria interessante ter, para alguns fluxos de trabalho.

This topic has been closed for replies.
Correct answer johnrellis

If you use the Contains Words operator rather than Contains, you'll get closer to the exact photos you want:

Contains Words X Y Z returns  photos that contain all of the "words" X, Y, and Z; whereas Contains X Y Z returns photos that contains any of the strings X, Y, or Z.  There are two differences: 1. Contains Words matches "words", while Contains matches strings that might be contained within words (e.g. "San" will match "Santos").  2. Contains Words requires the photo to match all of the given words, while Contains requires the photo to match at least one of the given strings, but not necessarily all of them.

But Contains Words could still match more photos than you want.  For example, "Contains Words Rafael Rosa Anny Leo" could match a photo with the keywords "Rafael Roberts", "Regina Rosa", "Anny Leo". 

Unfortunately, LR doesn't have the capability of doing exact keyword match, so if you need to do better than Contains Words, you'll have to use the Any Filter plugin.

1 reply

johnrellis
Legend
September 23, 2018

Google translation: Search for multiple keywords compound. Hello, in my workflow, we use keywords with the person's full name.  Imagine 100 photos of 30 different people, each person has his full name as a keyword and need to search for the photos of 2 people in the middle of them. The people are: Rafael Rosa, Anny Melo. I want to get them all at once, and I can not. because in any rule of the keyword, I can not filter the complete names separated by commas, because if you have, for example, a Rafael Santos, if I search the rule contains, it locates the two. I needed to know if there was a way for me to search for the whole word, like this: (Rafael Rosa), (Anny Melo) and he would return only those two, not the other Raphael and the other anny. From what I researched and tried all possible combinations, there is no way, and that would be interesting to have, for some workflows.

johnrellis
johnrellisCorrect answer
Legend
September 23, 2018

If you use the Contains Words operator rather than Contains, you'll get closer to the exact photos you want:

Contains Words X Y Z returns  photos that contain all of the "words" X, Y, and Z; whereas Contains X Y Z returns photos that contains any of the strings X, Y, or Z.  There are two differences: 1. Contains Words matches "words", while Contains matches strings that might be contained within words (e.g. "San" will match "Santos").  2. Contains Words requires the photo to match all of the given words, while Contains requires the photo to match at least one of the given strings, but not necessarily all of them.

But Contains Words could still match more photos than you want.  For example, "Contains Words Rafael Rosa Anny Leo" could match a photo with the keywords "Rafael Roberts", "Regina Rosa", "Anny Leo". 

Unfortunately, LR doesn't have the capability of doing exact keyword match, so if you need to do better than Contains Words, you'll have to use the Any Filter plugin.