Hello all, I am struggling with FunctionQueries in Solr. Thanks in advance for taking the time to read this and answer my questions. There doesn't seem to be a "how to" page anywhere. I have been to these sites:
http://wiki.apache.org/solr/FunctionQuery http://wiki.apache.org/solr/DisMaxRequestHandler#head-14b9ca618089829d139e6f3d6f52ff63e22a80d1 I have also searched through the forums for the answer, but have found none on what I am asking below. What I have come to realize is that if you have or don't have certain parameters, then the dismax will error out or the function query does not work. One example is that if you have mm being blank in the solrConfig.xml and not commented out, then it will throw a NumberFormatException. Another example is that without something in qf, then the query, using dt=dismax in the query request string, does not return any results. So, what I am really looking for here is the proper way to do the whole solrConfig.xml, for the dismax request handler. It seems that I am somehow missing something. The way that I understand it right now is this, for all the fields that will be searched on and a function query will be used, they need to be in the qf parameter. For the function query itself, I have just a field called importancerank which is a float type field. I do not use ord() or reord() or linear() etc... because I just want to take that value of that field and add it to the score. I also have a 0.01 in tie. I have echoParams set to explicit. These are the only parameters that I have set up. I have the rest commented out such as pf, ps, q.alt, and mm. Also, what is fl? I could not find any documentation on that. What happens currently for me is that when I put the dt=dismax parameter in my query request string, I get exactly the same results as if I didn't, meaning it didn't appear to sort it at all. What other parameters do I have to fill out in the request handler to make this work? What might I have done wrong in my thinking of how things work? Thanks again for reading through this and replying to my questions. Another thing that would be helpful is to see a whole solrConfig schema for the dismax request handler. I have only read about bits of it and I think that to get a view of a full one that actually works would be very helpful. Thanks again. Mike -- View this message in context: http://www.nabble.com/Function-Queries-tf4280039.html#a12182596 Sent from the Solr - User mailing list archive at Nabble.com.