function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Edwin HerreraEdwin Herrera 

Wildcard search

I have created a search and it is functioning but I would like to enable wildcard search as well for it. My code below is for the controller I am using.
Thank you for your assistance ahead of time.

public class IDSearch{

    String ID;
    List<Work_Item__c> results;
   
    public String getID(){
    return ID;}
   
    public List<Work_Item__c> getResults(){
    return results;}
   
    public void setID(String input){
    ID=input;}
   
    public PageReference search_now(){
    results=(List<Work_Item__c>) [FIND:ID IN ALL FIELDS RETURNING Work_Item__c(Work_Item_ID__c, Name,Accountable_IT_leader__c,Percent_Complete__c,LSEF_Stage_del__c)][0];
    return null;
    }
    }