Can not pass function query directly as a bf parameter

2016-06-13 Thread Vijaymhaskar
I am trying to execute below query against Solr 

q=cancer care facilities
&debugQuery=true
&defType=edismax
&bf=query({!lucene df=article q.op=AND v=$q},0) 

but it throws below error after execution,

org.apache.solr.common.SolrException: undefined field: "v"
at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1229)
at
org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:377)
at org.apache.solr.search.FunctionQParser.parse(FunctionQParser.java:80)
at org.apache.solr.search.QParser.getQuery(QParser.java:141)
at
org.apache.solr.search.ExtendedDismaxQParser.getBoostFunctions(ExtendedDismaxQParser.java:471)
at
org.apache.solr.search.ExtendedDismaxQParser.parse(ExtendedDismaxQParser.java:202)
at org.apache.solr.search.QParser.getQuery(QParser.java:141)
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:157)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:236)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)


But when we try same thing with Parameter dereferencing for bf then it works
as expected,

q=cancer care facilities
&debugQuery=true
&defType=edismax
&bf=$my_func
&my_func=query({!lucene df=article q.op=AND v=$q},0)


What can be a reason for this? How can we pass function directly as a bf
parameter ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-not-pass-function-query-directly-as-a-bf-parameter-tp4281986.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Searching Home's, Homes and Home

2016-07-12 Thread Vijaymhaskar
Hi Surender, 

Can you share your current field configuration so that we can debug it from
there.. ?

Share your field and fieldtype definition from schema.xml .



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Searching-Home-s-Homes-and-Home-tp4286341p4286768.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Searching Home's, Homes and Home

2016-07-12 Thread Vijaymhaskar
Hi Surender,

Please go through Stemmer documentation which will give you idea on how
stemmer works.

I see below issues in configured field types,
1. You have added porter stemmer awa english minimal stemmer also. You can
remove one of those based on your requirement. Minimal stemmer is
conservative and removes mainly plural endings.

2. KeywordMarkerFilterFactory Protects words from being modified by
stemmers. Any words in the protected word list will not be modified by any
stemmer in Solr. So it should be added before stemmer.


You can try,

 
  

 





  




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Searching-Home-s-Homes-and-Home-tp4286341p4286902.html
Sent from the Solr - User mailing list archive at Nabble.com.