Thanks Ash, good to know I'd got it basically right! I have been getting some file locking issues actually, although I'm not running a webfarm. However might just be from my constant file updates so not too worried right now.
Some more queries:
Point 1. Can you clarify what IsPrivate does? I want this to be automatically searchable, don't I? It's doing what I expect with IsPrivate set to 0, anyway.
Question 1. My custom searches will be coming from places I have no control over the delete process; if they don't come with a soft-delete flag I presume then I will need to delete them from Lucene myself?
Question 3. Okay, a bit of background. The requirement is for a "unified" search, similar to LinkedIn; so the user types in "bulgaria" say, and gets a results with content containing "bulgaria", users from Bulgaria, and 3rd party datastore results matching "bulgaria".
Each of these types will be pretty different objects, although obviously there will be enough crossover to allow searching.
The client would like a clear interface to differentiate the object types. On the autocomplete, that is obviously quite basic, but still important.
On the main search results, it's a lot more important; so content pages should be displayed pretty much as-is. Users should be tiled with a photo and bio etc. 3rd party results will depend on the actual object type. The display should be categorised by object type:
Bulgarian branch opens
Bulgaria wins sales figures for Q4
Users (would be tiled in actual site)
Is that at all possible?
Couple more questions:
1. How do I set the friendly display name for the search type I've created so the AJAX dropdown shows a nice category name?
Couple of questions on categorisation of results:
2a. If I search for a term contained in both content and my custom index, the autocomplete breaks it down by result type; it has the heading Pages, then two results, then the heading custom1 and the single result - as expected.
However, the main results put everything together - I get one page, one custom, then the second page. I need this grouped by search type - is that possible?
2b. Results with the same URL are grouped, correct, even if the Unique ID is different? Actually, that makes perfect sense, fine.
3. Would I be better looking at creating a custom module? I was trying to avoid that due to unfamiliarity with DNN, timescales, and the fact the built-in search very very nearly does what I want. Is it possible to easily create a custom module that basically duplicates the search so I can then modify it without worrying about updates to the core?
Again, thanks so much for quick reply and help!