Re: Adding new field after data is already indexed

2013-11-26 Thread jefferyyuan
Check Solr: Add new fields with Default Value for Existing Documents If we only need search and display the new fields, we can do the following steps. 1. add the new field definition in schema.xml:

Re: The way edismax parses colon seems weird

2013-07-19 Thread jefferyyuan
Thanks very much for the reply. We are querying solr directly from browser: http://localhost:8080/solr/select?q=12\:34&defType=edismax&debug=query&qf=content 12\:34 12\:34 (+12\:34)/no_coord +12\:34 ExtendedDismaxQParser And seems this is not related with which (default) field I use to query.

The way edismax parses colon seems weird

2013-07-19 Thread jefferyyuan
In our application, user may search error code like 12:34. We define default search field, like: title^10 body_stored^8 content^5 So when user search: 12:34, we want to search the error code in the specified fields. In the code, if we search q=12:34 directly, this can't find anything. It's expect

Re: Difference between IntField and TrieIntField in Lucene 4.0

2013-01-12 Thread jefferyyuan
Thanks very much, Yonik. I should read the Javadoc of Solr's IntField and TrieIntField. In Javadoc of Solr's IntField, IntField is marked as legacy field type: A legacy numeric field type that encodes "Integer" values as simple Strings. This class should not be used except by people with existing

How to modify Solr StatsComponent to support stats.range

2012-12-24 Thread jefferyyuan
Hi, I am trying to modify solr's code to support stats.range, just as Solr facet component. For example: q=*:*&stats=true&stats.field=fileSize&f.fileSize.stats.query=accesstime:[NOW-1MONTH TO NOW-7days]&f.fileSize.stats.query=accesstime:[NOW-1YEAR TO NOW-1MONTH]&f.fileSize.stats.query=fileSize:[*

Solr stats.facet on TrieField doesn't work

2012-12-19 Thread jefferyyuan
This seems an known issue: http://wiki.apache.org/solr/StatsComponent TrieFields has to use a precisionStep of -1 to avoid using UnInvertedField.java. Consider using one field for doing stats, and one for doing range facetting on. To fix this problem. and support dacet search on this field, I hav

RE: Is there a way to round data when index, but still able to return original content?

2012-12-10 Thread jefferyyuan
Sorry to ask a question again, but I want to round date(TireDate) and TrieLongField, seems they don't support configuring analyzer: charFilter , tokenizer or filter. What I should do? Now I am thinking to write my custom date or long field, is there any other way? :) Thanks :) -- View this m

Re: How to import a part of index from main Solr server(based on a query) to another Solr server and then do incremental import at intervals later(the updated index)?

2012-10-24 Thread jefferyyuan
Hi, all: Sorry for the late response: ) Thanks for your reply. I think Solr Replication may not help in my case, as the central server would store all docs of all users(1000+), and in each client, I only want to copy index of his/her docs created or changed in last 2 weeks(for example), after the

Monitor Deleted Event

2012-10-24 Thread jefferyyuan
When some docs are deleted from Solr server, I want to execute some code - for example, add an record such as {contentid, deletedat} to another solr server or database. How can I do this through Solr or Lucene? Thanks for any reply and help :) -- View this message in context: http://lucene.47

How to import a part of index from main Solr server(based on a query) to another Solr server and then do incremental import at intervals later(the updated index)?

2012-10-12 Thread jefferyyuan
I have a main solr server(solr1) which stores indexes of all docs, and want to implement the following function: 1. First make a full import of my doc updated/created recently(last 1 or 2 weeks) from solr1. 2. Make delta import at intervals to copy the change of my doc from solr1 to solr2. - doc ma