Field name filter
When searching data, I need to process field name similar to processing terms. Lower-case of field name so field name is not case sensitive (all fileld names are lower case when indexed), have synonyms for field names, example-if user types article:abc or user types content:abc it both cases it whould search the article field for abc. How do you suggest I go about it? -- View this message in context: http://www.nabble.com/Field-name-filter-tf4610551.html#a13166568 Sent from the Solr - User mailing list archive at Nabble.com.
Add fields to query when processing
How can I add a field name to query dynamicly? Examle: If user types in stock replace it with quantity:[1 TO *] -- View this message in context: http://www.nabble.com/Add-fields-to-query-when-processing-tf4610578.html#a1317 Sent from the Solr - User mailing list archive at Nabble.com.
Re: Return only one result per results group
Thank you, I'll take a look. Pieter Berkel wrote: Debra, It sounds like what you are trying to do is implemented in a new feature known as Field collapsing (see https://issues.apache.org/jira/browse/SOLR-236 for more info). Unfortunately it isn't quite mature enough to be included in the main distribution so in order to try it out you'll probably need to obtain the latest solr source code from svn trunk, apply the patch SOLR-236-FieldCollapsing.patch from the above URL and compile it yourself. If you do choose to do this, you might find some information on this wiki page helpful: http://wiki.apache.org/solr/HowToContribute cheers, Piete On 26/07/07, Debra [EMAIL PROTECTED] wrote: Is there a way to receive only one result for each group of search results depending on a specified group field. Example: Searching a list of articles with author as the group field would return articles that match the query but will return only one article per author even if the author has more then one article matching the query. Thank you -- View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11800407 Sent from the Solr - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11815089 Sent from the Solr - User mailing list archive at Nabble.com.
Return only one result per results group
Is there a way to receive only one result for each group of search results depending on a specified group field. Example: Searching a list of articles with author as the group field would return articles that match the query but will return only one article per author even if the author has more then one article matching the query. Thank you -- View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11800407 Sent from the Solr - User mailing list archive at Nabble.com.
Costume response writer
I have written a costume response writer and added the response writer to solrconfig.xml When I run a program I can see the costume response writer is initialized, but when I run a search with the costume writer's name as the wt paramater the search is executed but the response writer is not called (Even the first line of the write function in the costume writer,which is log.info(...) is not written out.). Any leads of what might be the cause? Thank you , Debra -- View this message in context: http://www.nabble.com/Costume-response-writer-tf3721357.html#a10412462 Sent from the Solr - User mailing list archive at Nabble.com.
Re: Costume response writer
This is from the log: ... INFO: adding queryResponseWriter jdbc=com.lss.search.request.JDBCResponseWriter 10/05/2007 21:11:39 com.lss.search.request.JDBCResponseWriter init INFO: Init JDBC reponse writer //This is added from the ini of the class to see that it's actually finding the right one ... 10/05/2007 21:11:44 org.apache.solr.core.SolrCore execute INFO: null jdsn=4start=0q=whitewt=jdbcqt=standardrows=90 0 1442 10/05/2007 21:11:44 org.apache.solr.core.SolrCore close This is from the JDBCResponseWriter code: public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IException { log.info(USING JDBC RESPONSE WRITER); The line USING JDBC RESPONSE WRITER doesn't appear in the log. Thanks, Debra -- View this message in context: http://www.nabble.com/Costume-response-writer-tf3721357.html#a10418873 Sent from the Solr - User mailing list archive at Nabble.com.
Re: Costume response writer
hossman_lucene wrote: can you clarify: 1) which version of Solr you are using (the Solr Implementation Version from /admin/registry.jsp gives the best answer) ... -Hoss Just downloaded the latest night build and viola it's back on track (with the other bugs...) -- View this message in context: http://www.nabble.com/Costume-response-writer-tf3721357.html#a10421865 Sent from the Solr - User mailing list archive at Nabble.com.
Reload schema.xml
Is there a way to reload schema.xml while solr is running? TIA Debra -- View this message in context: http://www.nabble.com/Reload-schema.xml-tf3404798.html#a9483346 Sent from the Solr - User mailing list archive at Nabble.com.
Reloading solr schema file
Is there a way to reload schema.xml while solr is running? As a newbiie Java programmer I'm not sure what happens if I do the following: SolrCore core = new SolrCore(null,null); Will it replace the current core? What happens to requests that are running? What if I do? SolrCore core =SolrCore.getSolrCore(); core=null; // first core.close(); ?? core =SolrCore.getSolrCore(); TIA Debra -- View this message in context: http://www.nabble.com/Reloading-solr-schema-file-tf3406562.html#a9489139 Sent from the Solr - User mailing list archive at Nabble.com.
Re: [2] SQL Update
I could create a list of field name + type, but doing so I might as well create it and add it to fields in schema.xml. Does solr reread the schema file when I post an add action or only on starup (or someother point)? In general, I wonder if adding the suffix for dynamic fields is not posing some usability tradeoff. I think, For a user (not a programmer) it's not intuitive to think of id as an integer and therefore enter id_i when searching, what do you think? Chris Hostetter wrote: and i suppose you could make a customized ResponseWriter that when writing out documents striped off any suffixes it could tell came from dynamicFields so the response docs contained str name=user and int name=id ... but when parsing the query string your clients send, and they ask for user:42 how would the request handler know that it shoudl rewrite that to user_string:42 and not user_int:42 ? -Hoss -- View this message in context: http://www.nabble.com/SQL-Update-tf3358303.html#a9372391 Sent from the Solr - User mailing list archive at Nabble.com.
Saving dynamic field name without dynamic extension
I want to add a suffix to my fields names to use the dynamic fields feature. Is there a way to save the field name without the suffix so users can search by field with plain field name? -- View this message in context: http://www.nabble.com/Saving-dynamic-field-name-without-dynamic-extension-tf3358269.html#a9340901 Sent from the Solr - User mailing list archive at Nabble.com.
SQL Update
What is the status of the SQL update? Should all database fields used in sql updates be added to schema.xml before running the sql update? -- View this message in context: http://www.nabble.com/SQL-Update-tf3358303.html#a9341018 Sent from the Solr - User mailing list archive at Nabble.com.
Re: [2] Saving dynamic field name without dynamic extension
Thank you, your suggestion looks like the way to go... Mike Klaas wrote: On 3/6/07, Debra [EMAIL PROTECTED] wrote: I want to add a suffix to my fields names to use the dynamic fields feature. Is there a way to save the field name without the suffix so users can search by field with plain field name? No, and I'm not sure that it is possible. Solr needs to know the type of a field at all times--not just during indexing. Why not create a _user suffix, and programmatically add the suffix to user queries before it reaches solr? -Mike -- View this message in context: http://www.nabble.com/Saving-dynamic-field-name-without-dynamic-extension-tf3358269.html#a9343182 Sent from the Solr - User mailing list archive at Nabble.com.
Re: [2] Reindex only records that changed
I would like to avoid such a field in case tables are updated in programs not under my control + any program that updates these tables has to add logic for updating this field. Sergey Polzunov-2 wrote: additional field in your DB as flag? 1 - dirty, 0 - clean. Debra wrote: Hi all, This is not a direct solr issue but I need it for indexing. Is there a way to check if a database record changed since the last index (with out using a specail flag field that has to be set any-where the record is updated). I would like to re-index only records that changed. TIA Debra -- View this message in context: http://www.nabble.com/Reindex-only-records-that-changed-tf3358652.html#a9343307 Sent from the Solr - User mailing list archive at Nabble.com.