Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to find multiple word match

Featured Replies

I have a complex problem. I have a database of records with a text field that contains a 1 to 5 word phrase such as "winner circle post horse laptop"

I want to search through each record's text field to find and compare another text field for a match of all of the words in the field regardless of the order they are in such as "circle winner laptop post horse" would be a match because the field contains all the words. I would like to reject matches that only contain a partial match of less than the complete word count.

Anybody ever done this or have any ideas?

  • Author

I have a complex problem. I have a database of records with a text field that contains a 1 to 5 word phrase such as "winner circle post horse laptop"

I want to search through each record's text field to find and compare another text field for a match of all of the words in the field regardless of the order they are in such as "circle winner laptop post horse" would be a match because the field contains all the words. I would like to reject matches that only contain a partial match of less than the complete word count.

Anybody ever done this or have any ideas?

  • Author

I have a complex problem. I have a database of records with a text field that contains a 1 to 5 word phrase such as "winner circle post horse laptop"

I want to search through each record's text field to find and compare another text field for a match of all of the words in the field regardless of the order they are in such as "circle winner laptop post horse" would be a match because the field contains all the words. I would like to reject matches that only contain a partial match of less than the complete word count.

Anybody ever done this or have any ideas?

That should be a straightforward find. Unless you quote the search text, FM should parse each word separately rather than as a phrase, and return all the records, and only those records, with all the words.

Make a button with a script:

Set Field [ global ; searchCriteriaField ]

# Or define searchCriteriaField as a global

Enter Find Mode

Set Field [fieldBeingSearched; global]

Perform Find

That should be a straightforward find. Unless you quote the search text, FM should parse each word separately rather than as a phrase, and return all the records, and only those records, with all the words.

Make a button with a script:

Set Field [ global ; searchCriteriaField ]

# Or define searchCriteriaField as a global

Enter Find Mode

Set Field [fieldBeingSearched; global]

Perform Find

  • Author

That solution will not really accomplish what I'm trying to do.

If my phrase is "dish tv satelllite" and I search It would find reslults of "satellite tv dish" and also "dish satellite tv cable box" if that phrase was there. I am only interested in exact matches of the phrase words including the count of the phrase words and omitting extra words in the match.

  • Author

That solution will not really accomplish what I'm trying to do.

If my phrase is "dish tv satelllite" and I search It would find reslults of "satellite tv dish" and also "dish satellite tv cable box" if that phrase was there. I am only interested in exact matches of the phrase words including the count of the phrase words and omitting extra words in the match.

If I understand you correctly, you could use another calc field, cWords =

WordCount ( textfield )

Then enter your search phrase in a global field and:

Enter Find Mode

Set Field [ textfield ; globalfield]

Set Field [ cWords ; WordCount ( globalfield ) ]

Perform Find

If I understand you correctly, you could use another calc field, cWords =

WordCount ( textfield )

Then enter your search phrase in a global field and:

Enter Find Mode

Set Field [ textfield ; globalfield]

Set Field [ cWords ; WordCount ( globalfield ) ]

Perform Find

you just need the find operator "=" in front of your find phrase like:

"=find this exact phrase"

you just need the find operator "=" in front of your find phrase like:

"=find this exact phrase"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.