Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6380 มุมมอง

Hello,

I would like to learn how to modify the default search behaviour such that the AND search criteria is default (i.e. if you type criteria1 into the search box and hit enter and then type criteria2 into the search box and hit enter it should automatically apply the AND operator rather than the OR logic).

Currently the only way to do this is to apply advanced searches one at a time which is quite time consuming, so having the ability to do it in the standard search field will save a lot of time!

Thanks for any help! Lawrence

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I think you can try it by overriding search method and in that method change the domain (change AND criteria to OR) as you want.

อวตาร
ละทิ้ง
ผู้เขียน

Hi Sudhir, thanks for your response. I'm not entirely sure how to modify the method - would you mind providing a bit more information about how to go about doing this? Thanks for your help!

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
562
Search a message แก้ไขแล้ว
1
ก.พ. 25
1262
0
ก.ย. 23
2225
2
มิ.ย. 23
4047
1
ส.ค. 22
12790