Majid Laali | 22 May 23:49 2015

How can I parse the TermVectorComponent response in SolrJ


I have a java program that sends a query to solr and get the term vector of a document. Something like this:

SolrQuery solrQuery = new SolrQuery();
solrQuery.setQuery("id:" + id);
solrQuery.setParam("fl", textField);
solrQuery.setParam("", "true");
solrQuery.setParam("tv.df", "true");
solrQuery.setParam("tv.tf_idf", "true");
QueryResponse docTVResponse = solrClient.query(solrQuery);
Object termVectors = docTVResponse.getResponse().get("termVectors”);

I am wondering if there is a class that can wrap the termVecotrs object so that I can access to tf, idf of terms
or I have to manually parse the json response of TermVectoreComponent. 

Thanks in advance, 

 *   Majid Laali, Ph.D. Candidate, 
 *   Computer Science & Software Engineering Department
 *   Concordia University
Marius Grama | 22 May 16:33 2015

how to start Solr from the IDE

I'm new on the Solr project (and Angular as well) and started attaching
patches to some of the issues from the project to get a better grasp on how
Solr is working.
I've recently done a minor patch in which I've done modifications on
Angular pages and after changing some java classes and some html files I
wanted to check the validity of my changes.

I checked the validity of my changes by doing :

$ ant server ;
$ bin/solr start -e cloud -noprompt

I was wondering if there's an easy way to start the Solr server directly
from the IDE (I use IDEA).
Also could you give me some tips that you think may be useful when working
on angular related isuses on Solr?

Thanks in advance.
Zheng Lin Edwin Yeo | 22 May 07:31 2015

Applying gzip compression in Solr 5.1


I'm trying to apply gzip compression in Solr 5.1. I understand that Running
Solr on Tomcat is no longer supported from Solr 5.0, so I've tried to
implement it in Solr.

I've downloaded jetty-servlets-9.3.0.RC0.jar and placed it in my
webapp\WEB-INF folder, and have added the following in



However, when I start Solr and check the browser, there's no gzip
compression. Is there anything which I configure wrongly or might have
missed out? I'm also running zookeeper-3.4.6.
(Continue reading)

Steven Bower | 22 May 03:24 2015

SolrCloud with local configs

Is it possible to run in "cloud" mode with zookeeper managing
collections/state/etc.. but to read all config files (solrconfig, schema,
etc..) from local disk?

Obviously this implies that you'd have to keep them in sync..

My thought here is of running Solr in a docker container, but instead of
having to manage schema changes/etc via zk I can just build the config into
the container.. and then just produce a new docker image with a solr
version and the new config and just do rolling restarts of the containers..


Timothy Potter | 21 May 21:15 2015

Confused about whether Real-time Gets must be sent to leader?

I'm seeing that RTG requests get routed to any active replica of the
shard hosting the doc requested by /get ... I was thinking only the
leader should handle that request since there's a brief window of time
where the latest update may not be on the replica (albeit usually very
brief) and the latest update is definitely on the leader. Am I
overthinking this since we've always maintained that Solr is
eventually consistent or ???


hossmaa | 21 May 18:12 2015

solr uima and opennlp

Hi everyone 

I'm trying to plug in a new UIMA annotator into solr. What is necessary for
this? Is is enough to build a Jar similarly to the ones from the uima-addons
package? More specifically, are the uima-addona Jars identical to the ones
found in solr's contrib folder? 


View this message in context:
Sent from the Solr - User mailing list archive at

Jim.Musil | 21 May 17:06 2015

Clarification on Collections API for 5.x


In the guide for moving from Solr 4.x to 5.x, it states the following:

"Solr 5.0 only supports creating and removing SolrCloud collections through the Collections
API<>, unlike previous
versions. While not using the collections API may still work in 5.0, it is unsupported, not recommended,
and the behavior will change in a 5.x release."

Currently, we launch several solr nodes with identical cores defined using the new Core Discovery
process. These nodes are also connected to a zookeeper ensemble. Part of the core definition is to set the
configSet to use. This configSet is uploaded to zookeeper separately. This effectively creates a Collection.

Is this method no long supported in 5.x?

Jim Musil

jon kerling | 21 May 15:12 2015

Solr suggester


I'm using solr 4.10 and I'm trying to add autosuggest ability to my application.
I'm currently using this kind of configuration:

 <searchComponent name="suggest" class="solr.SuggestComponent">
    <lst name="suggester">
      <str name="name">mySuggester</str>
      <str name="lookupImpl">FuzzyLookupFactory</str>      
      <str name="storeDir">suggester_fuzzy_dir</str>
      <str name="dictionaryImpl">DocumentDictionaryFactory</str>     
      <str name="field">field2</str>
      <str name="weightField">weightField</str>
      <str name="suggestAnalyzerFieldType">text_general</str>

  <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
      <str name="suggest">true</str>
      <str name="suggest.count">10</str>
      <str name="suggest.dictionary">mySuggester</str>
    <arr name="components">

I wanted to know how the suggester Index/file is being rebuilt.
Is it suppose to have all the terms of the desired field in the suggester?
(Continue reading)

alexw | 21 May 14:58 2015

Price Range Faceting Based on Date Constraints


I have an unique requirement to facet on product prices based on date
constraints, for which I have been thinking for a solution for a couple of
days now, but to no avail. The details are as follows:

1. Each product can have multiple prices, each price has a start-date and an
2. At search time, we need to facet on price ranges ($0 - $5, $5-$20,
3. When faceting, a date is first determined. It can be either the current
system date or a future date (call it date X)
4. For each product, the price to be used for faceting has to meet the
following condition: start-date < date X, and date X < end-date, in other
words, date X has to fall within start-date and end-date.
5. My Solr version: 3.5

Hopefully I explained the requirement clearly. I have tried single price
field with multivalue and each price value has startdate and enddate
appended. I also tried one field per price with the field name containing
both startdate and enddate. Neither approach seems to work. Can someone
please shed some light as to how the index should be designed and what the
facet query should look like?

Thanks in advance for your help!

View this message in context:
Sent from the Solr - User mailing list archive at

(Continue reading)

ariya bala | 21 May 14:58 2015

Logic on Term Frequency Calculation : Bug or Functionality


I am puzzled on the Term Frequency Behaviour of the DefaultSimilarity
I have suppressed the IDF by setting to 1.
TF-IDF would inturn reflect the same value as in Term Frequency

Below are the inferences:
Red coloured are expected to give a hit count(Term Frequency) of 2 but was
*Is it bug or is it how the behaviour is?*

Search Query: AAA BBB
Parsed Query: PhraseQuery(Contents:\"aaa bbb\"~5000)

DocumentContentSlopTFslop0TFslop2TF1AAA BBB-101212BBB AAA-10-213AAA AAA BBB-
101214AAA BBB AAA-201225BBB AAA AAA-10-216AAA BBB BBB-101217BBB AAA BBB-1012
18BBB BBB AAA-10-21

*Am I missing something?!!!!!*

*Ariya *
Danesh Kuruppu | 21 May 14:49 2015

Is it possible to do term Search for the filtered result set

Hi all,

Is it possible to do term search for the filtered result set. we can do
term search for all documents. Can we do the term search only for the
specified filtered result set.

Lets says we have,

Doc1 --> type: A
             tags: T1 T2

Doc2 --> type: A
             tags: T1 T3

Doc3 --> type: B
             tags: T1 T4 T5

Can we do term search for tags only in type:A documents, So that it gives
the results as
T1 - 02
T2 - 01
T3 - 01

Is this possible? If so can you please share documents on this.