Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2010 at 12:11 UTC
Updated:
22 May 2013 at 23:32 UTC
Jump to comment: Most recent
Comments
Comment #1
robertdouglass commentedYes, you'd have to reindex with the change in schema.xml.
I have some questions myself around exact matching. Will report back if I have interesting information.
Comment #2
ramprassad commentedHi domidc,
I assume you want to do an exact match on company name when you type the start words. Not sure this is what you are looking for, I had a similar situation doing a type ahead functionality based on city field using apachesolr_automplete module. To get the exact match the fields should not be tokenized, so I had to use a new field type with solr.KeywordTokenizerFactory
Then I had to just make a copy of the original city taxonomy value to this field in hook_update_index and faceted on the new "cities" field.
Comment #3
janusman commentedIt'd be nice to index both unstemmed and stemmed versions of the node and (by default) boost results with exact matches higher than those with stemming. However, that would mean a much larger index size.
Comment #4
domidc commentedHi ramprassad,
I m currently not on the project anymore but this is what my collegue came up with (he send me this info). Didnt tested this but according to him it worked. I ll post it because it might be useful.
Comment #5
pwolanin commentedAn alternative is to populate the prowords.txt file to prevent some specific words from being stemmed. Or switch to a different stemmer on the server like kstem.
Comment #7
jaffarcheckout commentedHi,
How to assign score for each and every node.. $params['bq'][] = "$field_name:$field_value^$boost_factor"; it doesnot work... Kindly provide solution.
Comment #8
jaffarcheckout commentedWe are building a customized Scoring module for the Apache Solr Results.
To do the same, we are using a custom module to override the Query created by Apache Colr using suggestion provided by domidc at Apache Solr Search Integration » Issues #4. http://drupal.org/node/912214#comment-3748634
The Custom function reads:
function hook_apachesolr_modify_query(&$query, &$params, $caller) {
$params['bf'][] = "recip(rord(is_field_mytestval),1000,1000,1000)^200";
}
In the above function
we assigned score to this field is_field_mytestval
There is so difference tin the results, the above Query doesnot get expected results.
Comment #9
SandraVdv commentedI got the same issue I think.. When i search for a full node title SOLR doesn't seem to find the node, but when I search for a part of the node title SOLR does return that node...
I'm a little bit confused here, but it seems to me that the title isn't indexed properly...
That's why I wanted to try your suggestion domidc, but when I add those fields to schema.xml my SOLR breaks... I get following errors:
Any help would be appreciated!
Comment #10
srajan83 commentedhere also same issue, actually my requirement is if we search a phrase (with in quotation marks) i need exact match only. other wise stemming would be fine. Any help please.
Comment #11
nick_vhLet's not reopen such an old thread. Please open a new issue is this is still relevant for you and see if it has been fixed in 6.x-3.x or 7.x-1.x. Thanks
Comment #12
balmydrizzle commentedMostly the conflicting index options errors occur when you set indexed=false and omitNorms (no matter the value) simultanesously.