solr4

Search Number Plates using Solr

妖精的绣舞 提交于 2019-12-03 09:09:59
I am working on searching a database containing huge db of records of number plates. I am planning to use Apache Solr for implementing the search feature. I don't know the term how to call the search feature I want to implement. But let me explain my requirements to you: When people search, I want a Solr to subtitute certain numbers for letters? Eg. 12 = R 13 = B 4 = A 11 = H etc etc? So for example, when someone search for "John" a search result will be offered should have following suggestions from available list of number plates. JO11 NYJ - Search should substitute 11 for H! For example,

How to configure Solr for improved indexing speed

我怕爱的太早我们不能终老 提交于 2019-12-03 05:50:11
I have a client program which generates a 1-50 millions Solr documents and add them to Solr. I'm using ConcurrentUpdateSolrServer for pushing the documents from the client, 1000 documents per request. The documents are relatively small (few small text fields). I want to improve the indexing speed. I've tried to increase the "ramBufferSizeMB" to 1G and the "mergeFactor" to 25 but didn't see any change. I was wondering if there is some other recommended settings for improving Solr indexing speed. Any links to relevant materials will be appreciated. It looks like you are doing a bulk import of

Adding tokens to a lucene tokenstream

走远了吗. 提交于 2019-12-03 03:57:06
问题 I wrote a TokenFilter which adds tokens in a stream. 1. Tests shows it works, but I don't completely understand why. If someone could shed a light on the semantics I'd be grateful. In particular, at (*) , restoring the state, doesn't that mean we either overwrite the current token or the token created before capturing the state? This is roughly what I did private final LinkedList<String> extraTokens = new LinkedList<String>(); private final CharTermAttribute termAtt = addAttribute

How to fix Solr Exception: Could not find necessary SLF4j logging jars?

纵然是瞬间 提交于 2019-12-02 20:41:08
I have big problems installing Solr 4.3 under Ubuntu 12.04. Firstly i installed tomcat. I can access tomcat via browser on localhost:8080. Into "Tomcat Web Application Manager" i try to install Solr 4.3 via 2solr.war" file. The file is been uploaded an deployed. But i cant get it started. "FAIL - Application at context path /solr could not be started". The log file ( localhost.log ) look like: 07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: Starting web application at '/solr' 07.05.2013 11:05:36 org.apache.catalina.core.StandardContext filterStart

Adding tokens to a lucene tokenstream

我的梦境 提交于 2019-12-02 17:19:36
I wrote a TokenFilter which adds tokens in a stream. 1. Tests shows it works, but I don't completely understand why. If someone could shed a light on the semantics I'd be grateful. In particular, at (*) , restoring the state, doesn't that mean we either overwrite the current token or the token created before capturing the state? This is roughly what I did private final LinkedList<String> extraTokens = new LinkedList<String>(); private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); private State savedState; @Override public boolean incrementToken() throws IOException {

How to do Solr Dataimport (i.e from RDBMS) using Java API?

只愿长相守 提交于 2019-12-02 14:05:19
问题 I am new to Solr, actually I tried Database table indexing in Solr manually, i.e creating a new data-config.xml and running the full import from Solr webUI, successfully did that. But now I need to do the same thing in Java. So I need know the following things using Java: How to set Solr datasource in Java api How to set the entity and query How to run full import Actually, for data import we write a configuration file like below <?xml version="1.0" encoding="UTF-8" ?> <dataConfig>

Setting Up Apache Solr in Cloud Mode

ⅰ亾dé卋堺 提交于 2019-12-02 11:48:21
I have to do the following: I have to deploy Solr on 2 servers/nodes. Deploy Zookeeper on another server. Upload a custom config to Zookeeper Create a custom collection with 2 shards and 2 replicas Version of Solr 7.4.0 & Zookeeper: 3.4.12 I have done the following: Set Up Zookeeper: Created a Zookeeper data folder & made a zoo.conf & put the dataDir there. Started zookeeper using ./zkServer.sh start Set up Solr: Started Solr using: ./solr start -cloud -s /home/demo/LocalFolder/Downloads/SolrHome -p 8987 -z localhost:2181 Trying to upload config in Zookeeper using: ./solr create -c

How can I do indexing XML files stored on other server in solr4

痞子三分冷 提交于 2019-12-02 06:40:08
问题 I have all my XML files stored on to the other server and I have installed and configure the SOLR on different server. How can I index those XML files into the SOLR. I have checked nutch but it's main purpose is to crawl the html pages and index them. I don't need to crawl. I have All those files on specific path on other server. I just need to do indexing those XML files in SOLR. I have installed and configure SOLR4. If anyone have did some thing like this please let me know how to do that.

How to do Solr Dataimport (i.e from RDBMS) using Java API?

我的未来我决定 提交于 2019-12-02 04:00:49
I am new to Solr, actually I tried Database table indexing in Solr manually, i.e creating a new data-config.xml and running the full import from Solr webUI, successfully did that. But now I need to do the same thing in Java. So I need know the following things using Java: How to set Solr datasource in Java api How to set the entity and query How to run full import Actually, for data import we write a configuration file like below <?xml version="1.0" encoding="UTF-8" ?> <dataConfig> <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/test_db" user=

How can I sort solr result bases on dynamic fields

牧云@^-^@ 提交于 2019-12-01 14:42:26
Thanks for giving your time. I need to sort result on the basis of dynamic field. How can I do that ? when I am sorting on minimum value of some of those dynamic attribute. It's not giving correct result because my query is like &sort=min(A_160018,A_chandigarh1) Some of document having both field A_160018 and A_chandigarh1 while some document having no field and some having one either A_160018 or A_chandigarh1 for some result doc . could you help me , How can I sort for this type of dynamic field. If you do not know if the field exist, you can set a default value in case it does not exists.