Currently I get all the fieldnames as follows:
//Get all fieldnames
string expectedFieldName = string.Empty;
IndexReader r = IndexReader.Open(lucenePath);
TermEnum te = r.Terms();
List<string> terms = new List<string>();
while (te.Next())
{
terms.Add(te.Term().Field());
}
terms = terms.Distinct<string>().ToList();
But it would be ...
As the red block above (warning that this is a subjective question and may be closed) there may not be a stone etched law on this, but I don't see why that would warrant closing a question.
...Rant aside
I am planning on implementing Hibernate as my persistence framework, which may fix my problem upon implementation, but I have DB tabl...
When creating database tables I'm often stumped when trying to name my time/date/timestamp fields. Sometimes it's easy, like edit_date and expiration_date... but often it's not as easy. I don't like repeating the table name in the field names because it seems redundant. If you have a posts table, should your timestamp field be post_date?...
When you save the results of a SQL query using "Microsoft SQL Query Analyzer" (version 8), the results of the query are saved but the column headers (field names) are not. Any idea how to save the field names to the results file as well?
...
have a legacy table with a field "LastModifiedDate", and I want to use that column as my "updated_at" column.
Is there any way to tell Rails to use that field?
Or, let me rephrase. :) ... How can I tell Rails to use that field? :)
Thanks!
...