Hi All,

in my search criteria i am using a criteria "apache tomcat" but it is 
giving me a parse exception.

my searcher has this piece of code:

searchQuery=makeWildcardQuery(searchQuery);
masterQuery.add(MultiFieldQueryParser.parse(searchQuery,fields,analyzer),REQUIRED,PROHIBITED);




private String makeWildcardQuery(String query)
    {
        String result = query.trim();

        if (0 != result.length())
        {
            if (!result.endsWith("*"))
            {
                result = result + "*";
            }
        }

        return result;
    }

Thanks and Regards
Krishnendra Nandi
Hewitt Associates India (Pvt.) Ltd.
Unitech World
Sector-39, Gurgaon
Haryana-India
 
The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message, including any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient 
is strictly prohibited.


Reply via email to