Hello, Thanks for answer!
I have created separate fields in mysolr schema for each field in database (more than 500!). How to ask parser for search via all these fields? By default Solr schema should contain explicit declaration of default search field like following: <defaultSearchField>TEXT</defaultSearchField> I tried to use following search query: .....?q=*:search text&hl=on&defType=edismax In this case search goes across default search field. I can't concatenate all 500 database field names in a big search expression. 2011/9/11 Jamie Johnson <jej2...@gmail.com> > You should create separate fields in your solr schema for each field > in your database that you want recognized separately. You can use a > query parser like edismax to do a weighted query across all of your > fields and then provide highlighting on the specific field which > matched. > > 2011/9/10 Eugeny Balakhonov <c0f...@gmail.com>: > > I want to create full-text search for my database. > > > > It means that search engine should look up some string for all fields of > my > > database. > > > > I have created Solr configuration for extracting and indexing data from a > > database. > > > > > > > > > > > > According documentation in the file schema.xml I have created field for > > full-text search index: > > > > > > > > <field name="TEXT" type="..." indexed="true" stored="true" > > multiValued="true"/> > > > > > > > > Also I have added strings for copying all values of all fields into this > > full-search field: > > > > > > > > ... > > > > <copyField source="...." dest="TEXT"/> > > > > ... > > > > > > > > In result I have possibility to search for all fields in my database. But > I > > can't recognize which field in the found record contains requested > string. > > > > Highlighting functionality just marks string in the "TEXT" field like > > following: > > > > > > > > <lst name="highlighting"> > > > > <lst name="431046.431344...8473633"> > > > > <arr name="TEXT"> > > > > <str>Any text any text <em>Test</em>"</str> > > > > </arr> > > > > </lst> > > > > <lst name="431046.431231...8476393"> > > > > <arr name="TEXT"> > > > > <str>Any text any text <em>Test</em>"</str> > > > > </arr> > > > > </lst> > > > > > > > > How to create full-search index with possibility to recognize source > > database field? > > > > > > > > Thx a lot. > > > > Eugeny > > > > > -- Best regards, Eugeny Balakhonov