I have two fields in azure index one is Address and other field is Mobileno filed i want to see result from index address filed contains mobile no
i want to is match mobile no from address: "search": "search.ismatch('MobileNo','Address')",
I have two fields in azure index one is Address and other field is Mobileno filed i want to see result from index address filed contains mobile no
i want to is match mobile no from address: "search": "search.ismatch('MobileNo','Address')",
Unfortunately, Azure Cognitive Search does not support directly using the value of one field as an input to another field's search expression. However, you can achieve a similar effect by using filters or adding specific patterns to your search query.
I have created a sample index with below schema:
And below sample data
You can use below query to search with same or different value of
MobileNoinAddressandMobileNofields.Below is an example output with different value of Mobile Number in Address and MobileNo field:
you can modify the above sample query based on your requirement and for more details you can check this documentation.