This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I apologize if it's in the documentation, but is there a way to modify the stop words used by the Lucene engine? |
|
|
No currently not, however I have added in an alternative constructor for the LuceneSearchEngine which will allow you to specify the stopwords which will be used when it creates the Analyzer instance it uses internally. I would have preferred to allow this to take in an Analyzer instance of your choosing since this would allow for more configuration on your end and would allow support for custom analyzers however Lucene is not currently CLS compliant so unfortunately Ill make do with this one overload for now :) This update will be in the next nightly build for you.
|
|
|
Ok I see the new constructor (thanks), but I am unsure how to use it. I was thinking it was along the lines of : Mindscape.LightSpeed.Search.LuceneSearchEngine = new LuceneSearchEngine(stopWords.ToArray()); Or Mindscape.LightSpeed.Search.LuceneSearchEngine().LuceneSearchEngine(stopWords.ToArray()); But I those aren't correct. How do you use it? Am I being really obtuse and it's easy? |
|
|
You use this by assigning it to the SearchEngine property on your LightSpeedContext instance. e.g.
|
|
|
Thanks a ton for the great support! That helped finish a project (I hope). |
|