Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable full-text search for webtop simple search component

In the simple search component in webtop, how do you disable full text search and just use the database?

I would like to keep the advanced search searching full text.

I understand that fulltext search can be disabled comepletely in the dfc.properties or filtered by type and role using a dql hints file but I cannot find anything about how to disable it only in simple search!

like image 228
Ayrad Avatar asked Dec 20 '25 00:12

Ayrad


2 Answers

You could extend the search component and in your extended component override buildQuery() method. This way you could write your own query. Glancing the developer forum, it should be enough to execute query without SEARCH TOPIC function.

like image 152
Miki Avatar answered Dec 22 '25 14:12

Miki


A solution similar to Miki's that seems to be working.

Extend the search component but modify the onClickSearch () javascript in your custom titlebar.jsp call and ovverride the postComponentJumpEvent by passing it the modified dql query.

function onClickSearch ()
{
var contentPage = eval(getAbsoluteFramePath("content"));
if (contentPage != null)
{
var text = document.getElementById("txtSearch");
callBlur(text);
var strValue = text.value;
if (strValue != "" && strValue != "<%=strSearch %>")
{

var query = "select * from dm_folder where upper(object_name) like upper('%" + strValue + "%')"; //or any query

postComponentJumpEvent(null, "search", "content", "queryType","dql","query", query);
like image 40
Ayrad Avatar answered Dec 22 '25 13:12

Ayrad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!