Lucene or Python: Select both "Hilary Clinton" and "Clinton, Hilary" name entries
Can you just use OR? "Hilary Clinton" OR "Clinton, Hilary"?
Let's say I have some free form entries for names, where some are in the format "Last Name, First Name" and others are in the format "First Name Last Name" (eg "Bob MacDonald" and "MacDonald. Bob" are both present).
From what I understand, Lucene indexing does not allow for wildcards in the beginning of the sentence, so what would be some ways in which I could find both. This is for neo4j and py2neo, so solutions in either lucene pattern matching, or in python regex matching are welcome.