add sphinx
add search
 fix for advanced search
add patents partial