leostro | 21 Dec 19:31 2014

set keepword file to be used based on a field value

Hi all,

I made some test and now I'm able to use keepwords for searching some common
"brands" name in the docs I have in my index.
I have docs with only two fields:
- a title
- a categoryId
The tests I made right now were based on videogame related rows, so I have a
keepwords.txt containing words like "nintendo", "playstation" and so on.

Now I want to intruct solr to use a different keepword file depending on the
categoryid value specified.

So, for docs with categoryid=1 (videogame) I'd like to use keepwrods1.txt
(the one with nintendo, playstation, etcetc) but id categoryid=2 (cars) I'd
like to use keepwords2.txt (another file containg bmw, audi, etcetc)

can someone help me?


View this message in context: http://lucene.472066.n3.nabble.com/set-keepword-file-to-be-used-based-on-a-field-value-tp4175474.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mike Thomsen | 20 Dec 20:27 2014

Solr cannot find solr.xml even though it's there

I'm getting the following stacktrace with Solr 4.5.0

SEVERE: null:org.apache.solr.common.SolrException: Could not load SOLR
        at org.apache.solr.core.ConfigSolr.fromFile(ConfigSolr.java:71)
        at org.apache.solr.core.ConfigSolr.fromSolrHome(ConfigSolr.java:98)
        at org.apache.solr.servlet.SolrDispatchFilter.loadConfigSolr(SolrDispatchFilter.java:144)
        at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:175)
        at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
/solr.xml cannot start Solrcommon.SolrException: solr.xml does not
exist in /opt/solr/solr-shard1
        at org.apache.solr.core.ConfigSolr.fromFile(ConfigSolr.java:60)
        ... 20 more

(Continue reading)

Jamie Johnson | 19 Dec 23:32 2014

Solr Block Join Query matching Parent documents that have multiple children

I have the following documents indexed
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
<result name="response" numFound="6" start="0">
<str name="type_s">physicalcharacteristics</str>
<str name="test_haircolor_txt">Black</str>
<str name="test_eyecolor_txt">Green</str>
<str name="type_s">physicalcharacteristics</str>
<str name="test_haircolor_txt">Red</str>
<str name="test_eyecolor_txt">Brown</str>
<str name="type_s">person</str>
<str name="key">1</str>
<str name="type_s">physicalcharacteristics</str>
<str name="test_eyecolor_txt">Pink</str>
<str name="test_haircolor_txt">Purple</str>
<str name="type_s">physicalcharacteristics</str>
<str name="test_haircolor_txt">Brown</str>
<str name="test_eyecolor_txt">Blue</str>
(Continue reading)

Tang, Rebecca | 19 Dec 19:22 2014

Old facet value doesn't go away after index update

Hi there,

I have an index that has a field called collection_facet.

There was a value 'Ness Motley Law Firm Documents' that we wanted to update to 'Ness Motley Law Firm'.  There
were 36,132 records with this value.  So I re-indexed just the 36,132 records.  After the update, I ran a
facet query (q=*:*&facet=true&facet.field=collection_facet) to see if the value got updated and I saw
Ness Motley Law Firm 36,132  -- as expected
Ness Motley Law Firm Documents 0 — Why is this value still here even though clearly there are no records
with this value anymore?  I thought maybe it was cached, so I restarted solr, but I still got the same results.

"facet_fields": { "collection_facet": [
… "Ness Motley Law Firm", 36132,
… "Ness Motley Law Firm Documents", 0 ]

Rebecca Tang
Applications Developer, UCSF CKM
Legacy Tobacco Document Library<legacy.library.ucsf.edu/>
E: rebecca.tang <at> ucsf.edu
solr-user | 19 Dec 18:47 2014

what does this "write.lock does not exist" mean??

I looked for messages on the following error but dont see anything in nabble. 
Does anyone know what this error means and how to correct it??

SEVERE: java.lang.IllegalArgumentException:
/var/apache/my-solr-slave/solr/coreA/data/index/write.lock does not exist

I also occasionally see error messages about specific index files such as

SEVERE: null:java.lang.IllegalArgumentException:
/var/apache/my_solr-slave/solr/coreA/data/index/_md39_1.del does not exist

I am using Solr 4.0.0, with Java 1.7.0_11-b21 and tomcat 7.0.34, running on
a 12GB centos box; we have master/slave setup with multiple slave searchers
per indexer.

any thoughts on this would be appreciated

View this message in context: http://lucene.472066.n3.nabble.com/what-does-this-write-lock-does-not-exist-mean-tp4175291.html
Sent from the Solr - User mailing list archive at Nabble.com.

Alexandre Rafalovitch | 19 Dec 17:21 2014

Re: Trying to understand error

Then I don't understand what you are trying to do. I assume you have
gone through the tutorial and the explanation of the extract handler
(e.g. http://wiki.apache.org/solr/ExtractingRequestHandler ).

It feels like you are shooting yourself in the foot on purpose and
wonder why it hurts. What is the business level problem you are trying
to solve?

Sign up for my Solr resources newsletter at http://www.solr-start.com/

On 19 December 2014 at 11:13, Joel Stobart <joel <at> stobart.co.uk> wrote:
> i'm sending it too
> /update/extract/
> using the document interface in the web manager.
> The text file is just an empty text document. I'm on a mac so utf-8 I
> guess.
> - Joel
> On 19 December 2014 at 15:55, Alexandre Rafalovitch <arafalov <at> gmail.com>
> wrote:
>> Oh. You are saying you are sending a text file and somehow Tika gets
>> involved.
(Continue reading)

Bjørn Hjelle | 19 Dec 15:26 2014

(Edge)NGramFilterFactory and highlight


based on this example:
I have earlier successfully implemented highlight of terms in
(Edge)NGram-analyzed fields.

In a new project, however, with Solr 4.10.2 it does not work.

In the Solr admin analysis page I see the following in Solr 4.10.2 (simplified):

ENGTF  text  t  te  tes  test
               start 0  0   0    0
               end   4  4   4    4

But if I change to LUCENE_43 in solrconfig.xml, and reload the
analysis page I get this:

ENGTF  text  t  te  tes  test
               start 0  0   0    0
               end   1  2   3    4

So, in 4.10.2 it is not able to find the correct end-positions and the
highlighter will instead highlight the complete word ("test" in this

To reproduce  this:
1. download Solr 4.10.2
2. In the collection1 schema.xml, add field type:

(Continue reading)

Nicholas M. Wertzberger | 19 Dec 11:02 2014

AUTO: Nicholas M. Wertzberger is out of the office (returning 12/26/2014)

I am out of the office until 12/26/2014.

I'll be out of the office starting Friday, Dec 19, until Friday, Dec 26.
Please contact Biju Kumar or Khurram Arshad for any pressing JAS Team
related items.

Note: This is an automated response to your message  "Re: Indexing with
SolrJ" sent on 12/19/2014 3:00:52 AM.

This is the only notification you will receive while this person is away.

This email and any attachments may contain information that is confidential and/or privileged for the
sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by
others, and any forwarding of this email or its contents, without the express permission of the sender is
strictly prohibited by law.  If you are not the intended recipient, please contact the sender
immediately, delete the e-mail and destroy all copies.
Vishnu Mishra | 19 Dec 10:05 2014

How To Interrupt Solr Query Execution

Hi, I am using solr 4.9 for searching  over 90 million+ documents. My Solr is
running on tomcat server and  I am  querying Solr from an application. I
have a problem with long-running queries against Solr. Although I have set
timeAllowed to 40000ms, but it seems that solr still running this query
until it processed fully. I read some articles where it is written that 

"*Internally, Solr does nothing to time out any requests -- it lets both
updates and queries take however long they need to take to be processed

Is this what Solr does? If so, is there a configuration option to change
this behavior? or can I interrupt solr query execution.

View this message in context: http://lucene.472066.n3.nabble.com/How-To-Interrupt-Solr-Query-Execution-tp4175190.html
Sent from the Solr - User mailing list archive at Nabble.com.

Norgorn | 19 Dec 09:49 2014

SOLR complex queries misunderstanding

I'm trying to implement specifying queries - we have some results and need to
search over them.
But query, I constructed, returns some strange results. 

q=(text:(specific) OR title:(specific)) AND (text:(first long query) OR
title:(first long query))

This query returns something, which contains "specific", but not  "first
long query", but result differs a lot from simple "q=(text:(specific) OR

I tried the following with same results:
q=(text:(specific) OR title:(specific)) +(text:(first long query) OR
title:(first long query))
q=(text:(specific) OR title:(specific)) AND _query_:"(text:(first long
query) OR title:(first long query))"

I'm sure, that this is the real query, going to SOLR, cause I checked it
before sending (SolrQuery.toString())

I can't find out what exactly am I misunderstanding (and what results am I
getting - they are really strange).

View this message in context: http://lucene.472066.n3.nabble.com/SOLR-complex-queries-misunderstanding-tp4175188.html
Sent from the Solr - User mailing list archive at Nabble.com.

Rajesh | 19 Dec 06:53 2014

Indexing with SolrJ


I'm trying to index documents using SolrJ. I'm getting duplicate documents
while adding child document to parent in the below scenario. I've UniqueKey
configuration in schema.xml.

1) Adding child to parent. If the parent already has a child then I can just
retrieve that parent and add child document and commit it again. Now it's
working fine.

2) Adding child to parent. If the parent does not have a child document
already, then it's creating duplicate of parent. So, I need to delete the
parent, create the parent with child once again and commit the parent with

Any thoughts on why this is happening?

View this message in context: http://lucene.472066.n3.nabble.com/Indexing-with-SolrJ-tp4175175.html
Sent from the Solr - User mailing list archive at Nabble.com.