Lucene command line?

Topics: Administration, General
Mar 31 at 7:44 PM

We are currently using Orchard 1.5.1.

It take two hours for indexing our data. We have a large database and multiple environments.

When we release something in production, an employee have to stay after works to click multiple time on index for each indexed content type for each environment.

Is there a way we can use a command line to rebuild the lucene index so when it will be my turn to stay on guard, I will just have to execute the script and monitor it remotely instead of having a clicking fest evening?

Thank you,
Have a great day!
Mar 31 at 7:50 PM
There most certainly is! checkout the IndexingCommands.cs in Orchard.Indexing/Commands; it implements the following commands:
  • index create <index-name>
  • index update <index-name>
  • index rebuild <index-name>
  • more...
Apr 13 at 12:49 PM
Hello sfmskywalker,

Thank you for your input!

After checking your answer, we will adapt our cs file to be able to run the rebuild index in command line.

Have a great day!