: Now I am trying *index-time *boosting to improve response time. So i created : an algorithm where I do the following:- : 1. sort the records i get from database on approval_dt asc and increase the : boost value of the <field> element for approval_dt by 0.1 as i encounter : higer approval_dt records. If there is no approval_dt for a record, not : boost value for it. I made omitnorms=false in schema.xml for approval_dt : field. Now when I apply the same query nothing special happens ie I dont : even see the latest dates first.
index time boosting of a field just affects tehfieldNorms for the specific field you apply the boost too -- if you don't search on that field (with a score based query type), the boost doesn't affect things. so if you applied an index time boost to some field named "approval_dt" then that boost isn't going to matter unless you query against the approval_dt field -- but if you use something like a range query, the boost still won't matter because range queries don't affect the score. more then likely what you want to do is use a *document* boost instead of a field boost .. that way the boost factor gets applied to any field you have that includes the norms, so no matter what field you query on the boost will get applied. : 2. If we boost a doc or field in the xml should we again use the bf : parameter with a function to put the boost into effect while querying when : trying index-time boost also? index time boosts and query boosts are completley orthoginal, you can use both together, but they don't require (or know) about eachother at all : 3. Also can you frame a query for me to see the latest approval_dt coming : first using the index-time boost approach. not with the setup you've described ... date based queries really won't ever look at the norms for the data field (unlessy ou did a term query for a very specified date value) : 4. Does bf function play any role in solrconfig.xml when we plan to use : index-time boost. My understanding is bf is used only for query-time boost. you are correct. : 5. Is it necessary to use bq in case of index time boost. same answer as #2. -Hoss