asp.net - What should go in my Lucene document? -


I use indexed content and documents etc. On our CMS This has worked well so far, but now I have to take it on the web page of the following couples:

  1. Published date
  2. Expiry date
  3. The page is 'active'
  4. User authorization

Therefore the search results should only show pages within the publication / end window, 'active' and view the current user Is authorized for

Should I include the above information in the Lucene Index? This will make the questions a bit more complicated, but the hit collection will only return 'valid' documents which will make the paging very easy for the result. On the other hand, I am repeating the information already in the CMS database, so I will endanger the integrity of my data, and whenever anything in the above list changes, as well as the actual content, Will do it

Anyone else had this problem? How did you solve it? Thank you.

Edit: Do I need to have 'fieldcache' (mentioned) to pass the 'valid' Doctor ID in Lucene Search?

Ask the question of the first CMS database, and create a bitset with all matching documents To translate between the app's doctor, fieldcatch will be required to have the ID of Lucene's internal Doctor ID). You can then run your Leucein Query using the filter (wrapping the beatset) on your index.

You can put all inappropriate data in your database (where it is related), and you are not worried about updating or rebuilding your index, it will run very fast.

P.S. I only used the Java version of Lucene, but it should work fine in Lucene.net.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -