Query norm for a function query ?

2007-05-22 Thread Mekin Maheshwari
What does Query norm mean for a function query ? From the explain output: 0.88247913 = (MATCH) FunctionQuery(org.apache.solr.search.function.ReciprocalFloatFunction:500.0/(1.0*float(float(popularity Rank))+500.0)), product of: 0.998004 = 500.0/(1.0*float(float(popularityRank)=1.0)+500.0)

Re: NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Done. Please check - http://wiki.apache.org/solr/FunctionQuery and send me your comments (or improve the wiki ) Right now its more of a aggregation of all relevant information. I hope people will be able to add notes like what values to use, pitfalls to avoid, behaviour in special cases as well

Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Mekin Maheshwari
2) eliminate the space inside the recip functions This solved it :) I would like to document this along with a little detail about function queries & may be if I get enough time, simple graphs that I created to help people choose the right values for using in the function queries. I dont see

NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Hi, I am getting the following exception when I try & run any query : java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Float.parseFloat(Float.java:394) at org.apache.solr.search.QueryPa

More about function queries

2007-05-07 Thread Mekin Maheshwari
Hi, Just wanted to check if there is more documentation about function queries besides the java doc at http://lucene.apache.org/solr/api/org/apache/solr/search/QueryParsing.html#parseFunction(java.lang.String,%20org.apache.solr.schema.IndexSchema) Starting with what the fields for all the funct

Re: Tagging

2007-02-22 Thread Mekin Maheshwari
For a more general solution, I'm thinking a separate lucene index might be ideal. -Yonik I dont know if this will work for others, below is what we do. Also, if there are things I can improve, do let me know. All tag inserts go to a small DB table. And I reindex the docs that these tags belon

Re: Searching multiple indices (solr newbie)

2007-01-09 Thread Mekin Maheshwari
: http://cnet.search.com/search?chkpt=astg.cnet.fd.search.cnet&q=canon&tag=srch I just so happen to have a bit of insight into how that page works, and while it's true that it queries multiple indexes with differnet schemas, it makes no attepts to merge the results -- the "product" results come f

Re: Searching multiple indices (solr newbie)

2007-01-04 Thread Mekin Maheshwari
Thanks Chris. http://wiki.apache.org/solr/FederatedSearch Thats useful & I might be getting close to that size soon. The issue is best described with an example: search for canon - matches multiple categories, which will have very different schemas http://cnet.search.com/search?chkpt

Searching multiple indices (solr newbie)

2007-01-01 Thread Mekin Maheshwari
Hi, I am a lucene user & a Solr newbie. I needed to setup searching over a new category of documents which we decided to keep in a separate index, because of very different schema & needs from our existing index. Since faceted searching was 1 of the new requirements, I decided to try Solr & was