• Hello people.

    I have an attirubte called “Reference code” and its value is an unique code for the property on my properties system.

    What I need is to be able to whenever this value is filled on search all other fields are ignored, since it’s a directly search for a specific property.

    Is it possible? How could I do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    You can set your Search widget to a strict search which will give you only the exact results.

    Thread Starter Kairion

    (@kairion)

    Even if I set it to strict search, if someone writes a “Reference code” and another field (e.g. selling price, city, area etc.) it wouldn’t show the property if the other fields have different data from the property.

    So what I need is to ignore all the other fields if “reference code” has text, so the search would work.

    Hey,

    What you can do is create a different search that only includes the wanted parameters, otherwise you would get back only the reference code.

    Thread Starter Kairion

    (@kairion)

    So there’s to way I can do something like that?:
    if(reference != “”) {
    // use search just with code parameter
    }
    else {
    // run search with all filled parameters
    }

    I just want to know where should I do it, and I’d do the job by myself.

    Hello,

    You could try this for now, otherwise I do not have a definite answer as this is something that would have to be investigated.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Define attribute as priority on search’ is closed to new replies.