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

Question

Question

How do you make a Custom Word/Phrase proximity Search in WebLink with a custom search and custom fields?

asked on October 6, 2017

I think I'm doing this correctly, but I'm not getting any search results. I'm attempting to build a text proximity search (like in the Advanced Search pane in the Windows client) but do it in a WebLink custom search. the Advanced search syntax in the client appears to be "(first word ^## second word)" where the ^##  indicates how many words apart the two words can be. I've added this syntax as the search custom search constraint, but it doesn't seem to work.

Is this even possible in this manner? (I know we could do it in the regular Search tab, but this assumes users know how to use Laserfiche, therefore I'm attempting to build a custom query instead.)

 

0 0

Answer

SELECTED ANSWER
replied on October 9, 2017

Hello Kyle,

 

This is possible as I was able to do this myself. To assist in troubleshooting your issue, you can try the following

1) If you were to "hardcode" your syntax into your "Constraint Definition" would the search return the right results? 

So if you were to in this example copy "(aims ^50 return)" and put that into your "Constraint Definition", would the search return the results as desired? 

2) If step 1 works, then you know the search should work, but perhaps something is off with your tokens. You can check the spelling or see if there are any case sensitivities

3) try deleting and recreating the fields.

 

note: in my search form, i used nothing but "Custom variable" as i'd assume you did from your screenshot. 

Regards,

0 0

Replies

replied on October 9, 2017

Thanks Andrew!

 

My syntax was slightly off.  I had put the parentheses on the first variable in the wrong place.  After I adjusted the variable to read "%(Text1)" instead of "(%Text1)", it worked.

1 0
replied on October 9, 2017 Show version history

NP Kyle!

So that's what it was! I missed that too from your screenshot. Glad you caught it!

Regards,

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

Sign in to reply to this post.