lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alaa.abuzaghleh" <>
Subject Re: different fields for user-supplied phrases in edismax
Date Thu, 11 Dec 2014 22:52:10 GMT
<requestHandler name="/suggest" class="solr.SearchHandler">
		<lst name="defaults">
			<str name="echoParams">explicit</str>
			<str name="defType">edismax</str>
			<str name="rows">10</str>
			<str name="fl">full_name,job_tree, company, city, state, country,
first_name, last_name, id</str>
			<str name="qf">full_name_suggest^60 full_name_ngram^100.0 job_suggest^30
job_ngram^50.0 </str>
			<str name="pf">full_name_edge^100.0 job_edge^50.0</str>
			<str name="group">true</str>
			<str name="group.field">full_name</str>

 			<str name="sort">full_name asc</str>
 			<str name="group.sort">full_name asc</str>

the configuration above let me search firstly by name, if there is no result
it will go and make the search by job hopefully this help you, I would like
to let you know that it does not work great if you have Japanese, Arabic, or

this is result for query to search for user whose name is alaa or work as

      "q":"alaa developer",
                "job_tree":"CTO(Chief Technology Officer) ",
                "country":"United States",
                "city":"North Hollywood",
                "full_name":"Alaa Abuzaghleh",
                "job_tree":"Web Developer",
                "full_name":"user1 user1",
                "job_tree":"Mobile App Developer",
                "company":"Apple ",
                "full_name":"user4 user4",
                "full_name":"usAlaa z3ra",

you can go to the multi lengaul issue in same place where you put your issue
and look for schema configuration. 

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message