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
|
Is there any way with the default Lucene search engine to conditionally index entities? Specifically, I have an index over a table where I know at entity creation time that I don't want certain rows in the index. Would setting GetSearchData to return null or empty do the trick? I realise I could specify the condition on a search, but this isn't very efficient if the potential result set from Lucene is very large but the result set after applying the condition very small. |
|
|
Hi, If you override the GetSearchData method and just return an empty string based on your conditional logic for not wanting an entity in the full text index then you should be good to go. It will still result in some data going into your lucene index (the fully qualified type name and the ID value) but that should be negligible compared to storing actual content to search on. Let me know if that solves the issue you're having for now :-) John-Daniel |
|