You are viewing limited content. For full access, please sign in.

Question

Question

Weblink 11 custom search

asked on June 16, 2022 Show version history

I have a desire to do a custom search on the Address and Streetname someone enters. I don't want to force them to enter a streetname, though. If the user entered a streetname, use both the StreetName and the AddressDigits to do the search. If the Streetname field is empty, use only the AddressDigits.

I would like to use this logic, or something similar...

Search for entries that meetany constraint
    Search for entries that meetall constraints
        %(StreetName) <> ""
        {[Template]:[Address]=%(AddressDigits)*%(StreetName)*}
    Search for entries that meetall constraints
        %(StreetName) = ""
        {[Template]:[Address]=%(AddressDigits)*}

 

I can't get this to work. Any thoughts on Syntax? Or can the custom fields not be interrogated that way?

Steve
 

 

0 0

Replies

replied on June 21, 2022

Because there is only one metadata field, Address, I think you could have a single search field with a tooltip instruction indicating the user can provide either the address digits or the address digits plus street name.

Ex.:

Please provide either the address number and street name (123 Main St.) or only the address number (123) below:

Address: [_____________]

----

Search Syntax:

{[Template]:[Address]=%(Address)*}

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.