Fwd: how to set cookie for url requesting in stream_url

2011-04-01 Thread satya swaroop
HI Markus,
   I am using solr branch_3x, in tomcat web server
Regards,
satya


Re: Highlight snippets for a set of known documents

2011-04-01 Thread Stefan Matheis
Jay,

i'm not sure, but did you try it w/ brackets?
q=foobar&fq={!q.op=OR}(id:1 id:5 id:11)

Regards
Stefan

On Thu, Mar 31, 2011 at 6:40 PM, Jay Luker  wrote:
> Hi all,
>
> I'm trying to get highlight snippets for a set of known documents and
> I must being doing something wrong because it's only sort of working.
>
> Say my query is "foobar" and I already know that docs 1, 5 and 11 are
> matches. Now I want to retrieve the highlight snippets for the term
> "foobar" for docs 1, 5 and 11. What I assumed would work was something
> like: "...&q=foobar&fq={!q.op=OR}id:1 id:5 id:11...". This returns
> numfound=3 in the response, but I only get the highlight snippets for
> document id:1. What am I doing wrong?
>
> Thanks,
> --jay
>


Re: Problems with DIH and missing fields.

2011-04-01 Thread Stefan Matheis
Marcelo,

could you paste the relevant parts of your DIH config?

Regards
Stefan

On Thu, Mar 31, 2011 at 9:55 PM, Marcelo Iturbe  wrote:
> Hello,
> I have an XML which contains personal contacts. Not all contacts have the
> same fields (email, phone, postal).
>
> The problem is that when certain fields are NOT present,  SOLR is injecting
> the previous contacts data.
>
> For example, assume the following from the XML feed:
> 
>        Jane Doe
>        
>        Santiago
>            Region Metropolitana
>        Chile
>    
>    
>        Jeff Smith
>        
>    
>    
>        Ana Mercurio
>         primary='true'>+56912345678
>    
>
> The second contact, will have the first contacts postal address.
> The third contact, will have Janes Postal Address and Jeffs email address:
>
> 
>    
>        Ana Mercurio
>    
>    
>        +5612345678
>    
>    
>        jeff.sm...@gmail.com
>    
>    
>        Santiago
>            Region Metropolitana
>        Chile
>    
> 
>
> This is how I have the fields specified in the schema.xml file:
>     multiValued="true" default=" "/>
>     multiValued="true"  default=" "/>
>     multiValued="true"  default=" "/>
>
> What did I miss?
>
> Thanks for your help.
>


Does solr support secure enterprise search?

2011-04-01 Thread m _ 米蟲ы~
Hello,
Does solr support secure enterprise search? 
That's to say, person can only visit to the concerns of the information within 
their authorities.
If I wanna meet the goal, what can I do?


Thanks for your help.
--
 Best wishes 
  
 Zhenpeng Fang
  
 方 振鹏 
  
 Dept. Software Engineering
  
 Xiamen University

SolrException: No such core: core1

2011-04-01 Thread Amel Fraisse
Hello every body,

I tried to run this code:

   File f = new File ("./solr/solr.xml");

System.setProperty("solr.solr.home", "solr");

CoreContainer.Initializer initializer = new
CoreContainer.Initializer();
CoreContainer coreContainer = initializer.initialize();

coreContainer.load("./solr/solr.xml", f);

servercore1 = new EmbeddedSolrServer(coreContainer, "core1");
servercore2 = new EmbeddedSolrServer(coreContainer, "core2");


org.apache.solr.common.SolrException: No such core: core1
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at
org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
at fr.splayce.solr.handler.SolrCoreTest.deleteAll(SolrCoreTest.java:61)
at
fr.splayce.test.solr.core.highlighting.SolrCorePassageValideHighlighter.setup(SolrCorePassageValideHighlighter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


Some one could help me to resolve this problem?

Thank you very much.

Amel.


Re: SolrException: No such core: core1

2011-04-01 Thread Stefan Matheis
Amel,

how does your solr.xml look like? and if you visit the
Solr-Admin-Interface, are there Links for (at least) two cores listed?

Regards
STefan

On Fri, Apr 1, 2011 at 10:41 AM, Amel Fraisse  wrote:
> Hello every body,
>
> I tried to run this code:
>
>       File f = new File ("./solr/solr.xml");
>
>        System.setProperty("solr.solr.home", "solr");
>
>        CoreContainer.Initializer initializer = new
> CoreContainer.Initializer();
>        CoreContainer coreContainer = initializer.initialize();
>
>        coreContainer.load("./solr/solr.xml", f);
>
>        servercore1 = new EmbeddedSolrServer(coreContainer, "core1");
>        servercore2 = new EmbeddedSolrServer(coreContainer, "core2");
>
>
> org.apache.solr.common.SolrException: No such core: core1
>    at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
>    at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
>    at
> org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
>    at fr.splayce.solr.handler.SolrCoreTest.deleteAll(SolrCoreTest.java:61)
>    at
> fr.splayce.test.solr.core.highlighting.SolrCorePassageValideHighlighter.setup(SolrCorePassageValideHighlighter.java:31)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>    at
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>    at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>    at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>    at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>    at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
>
> Some one could help me to resolve this problem?
>
> Thank you very much.
>
> Amel.
>


Re: SolrException: No such core: core1

2011-04-01 Thread Amel Fraisse
Hi Stefan,

This my solr.xml:


 
 
  
  
 
.

And when I visit the solr Admin Interface
(http://0.0.0.0:8983/solr/admin/) I have this message:
HTTP ERROR: 404

missing core name in path

RequestURI=/solr/admin/index.jsp
*
Amel.
*
2011/4/1 Stefan Matheis 

> Amel,
>
> how does your solr.xml look like? and if you visit the
> Solr-Admin-Interface, are there Links for (at least) two cores listed?
>
> Regards
> STefan
>
> On Fri, Apr 1, 2011 at 10:41 AM, Amel Fraisse 
> wrote:
> > Hello every body,
> >
> > I tried to run this code:
> >
> >   File f = new File ("./solr/solr.xml");
> >
> >System.setProperty("solr.solr.home", "solr");
> >
> >CoreContainer.Initializer initializer = new
> > CoreContainer.Initializer();
> >CoreContainer coreContainer = initializer.initialize();
> >
> >coreContainer.load("./solr/solr.xml", f);
> >
> >servercore1 = new EmbeddedSolrServer(coreContainer, "core1");
> >servercore2 = new EmbeddedSolrServer(coreContainer, "core2");
> >
> >
> > org.apache.solr.common.SolrException: No such core: core1
> >at
> >
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
> >at
> >
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
> >at
> >
> org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
> >at
> fr.splayce.solr.handler.SolrCoreTest.deleteAll(SolrCoreTest.java:61)
> >at
> >
> fr.splayce.test.solr.core.highlighting.SolrCorePassageValideHighlighter.setup(SolrCorePassageValideHighlighter.java:31)
> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >at java.lang.reflect.Method.invoke(Method.java:597)
> >at
> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >at
> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >at
> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >at
> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >at
> >
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
> >at
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
> >at
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
> >at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> >at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> >at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> >at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> >at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> >at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> >at
> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> >at
> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> >at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> >at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> >
> >
> > Some one could help me to resolve this problem?
> >
> > Thank you very much.
> >
> > Amel.
> >
>


Re: SolrException: No such core: core1

2011-04-01 Thread Amel Fraisse
yes with this link : http://localhst:8983/solr/core1/admin  I have the same
message such :

HTTP ERROR: 404

NOT_FOUND

RequestURI=/solr/core1/admin


Amel.


2011/4/1 Stefan Matheis 

> Amel,
>
> for visiting the admin-interface, just start with
> http://host:port/solr - which will generate a list of available cores
> for you. in MultiCore-Mode you'll need to put the Core-Name into the
> url, like this: /solr/core1/admin
>
> Regards
> Stefan
>
> On Fri, Apr 1, 2011 at 11:03 AM, Amel Fraisse 
> wrote:
> > Hi Stefan,
> >
> > This my solr.xml:
> >
> > 
> >   > value="/home/solr-user/solr/bin/snapshooter.sh" />
> >  
> >   
> >   
> >  
> > .
> >
> > And when I visit the solr Admin Interface
> > (http://0.0.0.0:8983/solr/admin/) I have this message:
> >
> > HTTP ERROR: 404
> >
> > missing core name in path
> >
> > RequestURI=/solr/admin/index.jsp
> >
> > Amel.
> >
> > 2011/4/1 Stefan Matheis 
> >>
> >> Amel,
> >>
> >> how does your solr.xml look like? and if you visit the
> >> Solr-Admin-Interface, are there Links for (at least) two cores listed?
> >>
> >> Regards
> >> STefan
> >>
> >> On Fri, Apr 1, 2011 at 10:41 AM, Amel Fraisse 
> >> wrote:
> >> > Hello every body,
> >> >
> >> > I tried to run this code:
> >> >
> >> >   File f = new File ("./solr/solr.xml");
> >> >
> >> >System.setProperty("solr.solr.home", "solr");
> >> >
> >> >CoreContainer.Initializer initializer = new
> >> > CoreContainer.Initializer();
> >> >CoreContainer coreContainer = initializer.initialize();
> >> >
> >> >coreContainer.load("./solr/solr.xml", f);
> >> >
> >> >servercore1 = new EmbeddedSolrServer(coreContainer, "core1");
> >> >servercore2 = new EmbeddedSolrServer(coreContainer, "core2");
> >> >
> >> >
> >> > org.apache.solr.common.SolrException: No such core: core1
> >> >at
> >> >
> >> >
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
> >> >at
> >> >
> >> >
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
> >> >at
> >> >
> >> >
> org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
> >> >at
> >> > fr.splayce.solr.handler.SolrCoreTest.deleteAll(SolrCoreTest.java:61)
> >> >at
> >> >
> >> >
> fr.splayce.test.solr.core.highlighting.SolrCorePassageValideHighlighter.setup(SolrCorePassageValideHighlighter.java:31)
> >> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >at
> >> >
> >> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> >at
> >> >
> >> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >at java.lang.reflect.Method.invoke(Method.java:597)
> >> >at
> >> >
> >> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >> >at
> >> >
> >> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >> >at
> >> >
> >> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >> >at
> >> >
> >> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >> >at
> >> >
> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
> >> >at
> >> >
> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
> >> >at
> >> >
> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
> >> >at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> >> >at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> >> >at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> >> >at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> >> >at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> >> >at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >> >at
> >> >
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> >> >
> >> >
> >> > Some one could help me to resolve this problem?
> >> >
> >> > Thank you very much.
> >> >
> >> > Amel.
> >> >
> >
> >
> >
>


Comment Unused portions in solrconfig

2011-04-01 Thread rahul
Hi,

I have indexed some terms in our solr and I only used Solr for searching
purpose only. Currently, I dont use highlighting part (" and requesthandlers
like '/spell', and queryResponseWriters (since I use solrj, it uses default
javabin response writer).

I have little bit concerned about, if I comment those unused modules from
solrconfig.xml, whether it will used to increase search performance little
bit. ?? Or if I comment then it will affect any of the Solr
operations/performance ??

thanks in advance.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Comment-Unused-portions-in-solrconfig-tp2762664p2762664.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: HTTP Status 500 - Severe errors in solr configuration change: false in null ------------------------------------------------------------- org

2011-04-01 Thread jim
 Many thanks. the problem was solved with your help~~~

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2762692.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SolrException: No such core: core1

2011-04-01 Thread Amel Fraisse
ok,
1. http://localhost:8983/solr/  : return a page with
Welcome to Solr!  Solr Admin 

2. when I clik on SolrAdmin  I have this message:
HTTP ERROR: 404

missing core name in path

RequestURI=/solr/admin/index.jsp


So , I don't have the core list

Amel.

2011/4/1 Stefan Matheis 

> and my origin question .. accessing /solr and see which cores are list?
>
> On Fri, Apr 1, 2011 at 11:11 AM, Amel Fraisse 
> wrote:
> > yes with this link : http://localhst:8983/solr/core1/admin  I have the
> same
> > message such :
> >
> > HTTP ERROR: 404
> >
> > NOT_FOUND
> >
> > RequestURI=/solr/core1/admin
> >
> > Amel.
> >
> >
> > 2011/4/1 Stefan Matheis 
> >>
> >> Amel,
> >>
> >> for visiting the admin-interface, just start with
> >> http://host:port/solr - which will generate a list of available cores
> >> for you. in MultiCore-Mode you'll need to put the Core-Name into the
> >> url, like this: /solr/core1/admin
> >>
> >> Regards
> >> Stefan
> >>
> >> On Fri, Apr 1, 2011 at 11:03 AM, Amel Fraisse 
> >> wrote:
> >> > Hi Stefan,
> >> >
> >> > This my solr.xml:
> >> >
> >> > 
> >> >   >> > value="/home/solr-user/solr/bin/snapshooter.sh" />
> >> >  
> >> >   
> >> >   
> >> >  
> >> > .
> >> >
> >> > And when I visit the solr Admin Interface
> >> > (http://0.0.0.0:8983/solr/admin/) I have this message:
> >> >
> >> > HTTP ERROR: 404
> >> >
> >> > missing core name in path
> >> >
> >> > RequestURI=/solr/admin/index.jsp
> >> >
> >> > Amel.
> >> >
> >> > 2011/4/1 Stefan Matheis 
> >> >>
> >> >> Amel,
> >> >>
> >> >> how does your solr.xml look like? and if you visit the
> >> >> Solr-Admin-Interface, are there Links for (at least) two cores
> listed?
> >> >>
> >> >> Regards
> >> >> STefan
> >> >>
> >> >> On Fri, Apr 1, 2011 at 10:41 AM, Amel Fraisse <
> amel.frai...@gmail.com>
> >> >> wrote:
> >> >> > Hello every body,
> >> >> >
> >> >> > I tried to run this code:
> >> >> >
> >> >> >   File f = new File ("./solr/solr.xml");
> >> >> >
> >> >> >System.setProperty("solr.solr.home", "solr");
> >> >> >
> >> >> >CoreContainer.Initializer initializer = new
> >> >> > CoreContainer.Initializer();
> >> >> >CoreContainer coreContainer = initializer.initialize();
> >> >> >
> >> >> >coreContainer.load("./solr/solr.xml", f);
> >> >> >
> >> >> >servercore1 = new EmbeddedSolrServer(coreContainer,
> "core1");
> >> >> >servercore2 = new EmbeddedSolrServer(coreContainer,
> "core2");
> >> >> >
> >> >> >
> >> >> > org.apache.solr.common.SolrException: No such core: core1
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
> >> >> >at
> >> >> >
> fr.splayce.solr.handler.SolrCoreTest.deleteAll(SolrCoreTest.java:61)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> fr.splayce.test.solr.core.highlighting.SolrCorePassageValideHighlighter.setup(SolrCorePassageValideHighlighter.java:31)
> >> >> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >> >at java.lang.reflect.Method.invoke(Method.java:597)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
> >> >> >at
> >> >> >
> >> >> >
> >> >> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
> >> >> >at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> >> >> >at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> >> >> >at
> >> >> > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> >> >> >at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> >> >> >at
> >> >> > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> >> >> >at org.

Re: Does solr support secure enterprise search?

2011-04-01 Thread Upayavira
On Fri, 01 Apr 2011 16:33 +0800, "m _ 米蟲ы~" 
wrote:
> Hello,
> Does solr support secure enterprise search? 
> That's to say, person can only visit to the concerns of the information
> within their authorities.
> If I wanna meet the goal, what can I do?

I see you did ask this on solr-user, so I'll also answer here:

You should really be asking this on the user list
solr-user@lucene.apache.org.
 
Solr does not provide any security features - you would be expected to
implement security within your application that you put in front of
Solr.
 
LucidWorks Enterprise (a commercial package based upon Solr) does offer
security features.
 
Upayavira
--- 
Enterprise Search Consultant at Sourcesense UK, 
Making Sense of Open Source



Re: Matching the beginning of a word within a term

2011-04-01 Thread Jan Høydahl
Check out 
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory
Don't know if it works with phrases though

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 31. mars 2011, at 16.49, Brian Lamb wrote:

> No, I don't really want to break down the words into subwords. In the
> example I provided, I would not want "kind" to match either record because
> it is not at the beginning of the word even though "kind" appears in both
> records as part of a word.
> 
> On Wed, Mar 30, 2011 at 4:42 PM, lboutros  wrote:
> 
>> Do you want to tokenize subwords based on dictionaries ? A bit like
>> disagglutination of german words ?
>> 
>> If so, something like this could help : DictionaryCompoundWordTokenFilter
>> 
>> http://search.lucidimagination.com/search/document/CDRG_ch05_5.8.8
>> 
>> Ludovic
>> 
>> 
>> http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilter.html
>> 
>> 2011/3/30 Brian Lamb [via Lucene] <
>> ml-node+2754668-300063934-383...@n3.nabble.com>
>> 
>>> Hi all,
>>> 
>>> I have a field set up like this:
>>> 
>>> >> stored="true" required="false" />
>>> 
>>> And I have some records:
>>> 
>>> RECORD1
>>> 
>>> companion to mankind
>>> pooch
>>> 
>>> 
>>> RECORD2
>>> 
>>> companion to womankind
>>> man's worst enemy
>>> 
>>> 
>>> I would like to write a query that will match the beginning of a word
>>> within
>>> the term. Here is the query I would use as it exists now:
>>> 
>>> 
>> http://localhost:8983/solr/search/?q=*:*&fq={!q.op=AND%20df=common_names}
>> "companion
>>> 
>>> man"~10
>>> 
>>> In the above example. I would want to return only RECORD1.
>>> 
>>> The query as it exists right now is designed to only match records where
>>> both words are present in the same term. So if I changed man to mankind
>> in
>>> the query, RECORD1 will be returned.
>>> 
>>> Even though the phrases companion and man exist in the same term in
>>> RECORD2,
>>> I do not want RECORD2 to be returned because 'man' is not at the
>> beginning
>>> of the word.
>>> 
>>> How can I achieve this?
>>> 
>>> Thanks,
>>> 
>>> Brian Lamb
>>> 
>>> 
>>> --
>>> If you reply to this email, your message will be added to the discussion
>>> below:
>>> 
>>> 
>> http://lucene.472066.n3.nabble.com/Matching-the-beginning-of-a-word-within-a-term-tp2754668p2754668.html
>>> To start a new topic under Solr - User, email
>>> ml-node+472068-1765922688-383...@n3.nabble.com
>>> To unsubscribe from Solr - User, click here<
>> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=472068&code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2MDUxNjE=
>>> .
>>> 
>>> 
>> 
>> 
>> -
>> Jouve
>> France.
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Matching-the-beginning-of-a-word-within-a-term-tp2754668p2755561.html
>> Sent from the Solr - User mailing list archive at Nabble.com.



Re: Does solr support secure enterprise search?

2011-04-01 Thread Jan Høydahl
Check out the new Apache project ManifoldCF which integrates nicely with Solr 
and provides document level security.
There's a nice write-up over at JTeam's site: 
http://blog.jteam.nl/2010/04/16/introduction-to-lucene-connectors-framework-part-1/

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 1. apr. 2011, at 10.33, m _ 米蟲ы~ wrote:

> Hello,
> Does solr support secure enterprise search? 
> That's to say, person can only visit to the concerns of the information 
> within their authorities.
> If I wanna meet the goal, what can I do?
> 
> 
> Thanks for your help.
> --
> Best wishes 
> 
> Zhenpeng Fang
> 
> 方 振鹏 
> 
> Dept. Software Engineering
> 
> Xiamen University



Unsupported encoding GB18030

2011-04-01 Thread Jan Høydahl
Hi,

Testing the new Solr 3.1 release under Windows XP and Java 1.6.0_23

When trying to post example\exampledocs\gb18030-example.xml using post.jar I 
get this error:
% java -jar post.jar gb18030-example.xml
jar gb18030-example.xml
SimplePostTool: version 1.3
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file gb18030-example.xml
SimplePostTool: FATAL: Solr returned an error #400 Unsupported encoding: 
GB18030lap

From the stack it is caused by com.ctc.wstx.exc.WstxIOException: Unsupported 
encoding: GB18030

The same works on my MacBook with Java1.6.0_24

Clues?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com



Re: Unsupported encoding GB18030

2011-04-01 Thread Li Li
post.jar only support utf8. you must do the transformation.

2011/4/1 Jan Høydahl :
> Hi,
>
> Testing the new Solr 3.1 release under Windows XP and Java 1.6.0_23
>
> When trying to post example\exampledocs\gb18030-example.xml using post.jar I 
> get this error:
> % java -jar post.jar gb18030-example.xml
> jar gb18030-example.xml
> SimplePostTool: version 1.3
> SimplePostTool: POSTing files to http://localhost:8983/solr/update..
> SimplePostTool: POSTing file gb18030-example.xml
> SimplePostTool: FATAL: Solr returned an error #400 Unsupported encoding: 
> GB18030lap
>
> From the stack it is caused by com.ctc.wstx.exc.WstxIOException: Unsupported 
> encoding: GB18030
>
> The same works on my MacBook with Java1.6.0_24
>
> Clues?
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
>
>


Re: ComplexPhraseQueryParser and wildcards

2011-04-01 Thread jmr

Erick Erickson wrote:
> 
> Ohhh, my. Well, in that case I'm afraid I'm out of ideas. Can you
> raise a JIRA on the crash? Please include the field definition
> and an example of the query you're sending. This should
> be fixed...
> 

How can I do this ?
Sorry I'm just starting in using Solr and related stuff.

Jean-Michel

--
View this message in context: 
http://lucene.472066.n3.nabble.com/ComplexPhraseQueryParser-and-wildcards-tp2742244p2763410.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Unsupported encoding GB18030

2011-04-01 Thread Jan Høydahl
Hi,

Then why did it work fine with post.jar on my Mac? The chinese letters show 
just fine. It also works using
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" 
--data-binary @gb18030-example.xml

So I imagine there must be something with Windows XP or the JVM on my Windows 
box??

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 1. apr. 2011, at 15.34, Li Li wrote:

> post.jar only support utf8. you must do the transformation.
> 
> 2011/4/1 Jan Høydahl :
>> Hi,
>> 
>> Testing the new Solr 3.1 release under Windows XP and Java 1.6.0_23
>> 
>> When trying to post example\exampledocs\gb18030-example.xml using post.jar I 
>> get this error:
>> % java -jar post.jar gb18030-example.xml
>> jar gb18030-example.xml
>> SimplePostTool: version 1.3
>> SimplePostTool: POSTing files to http://localhost:8983/solr/update..
>> SimplePostTool: POSTing file gb18030-example.xml
>> SimplePostTool: FATAL: Solr returned an error #400 Unsupported encoding: 
>> GB18030lap
>> 
>> From the stack it is caused by com.ctc.wstx.exc.WstxIOException: Unsupported 
>> encoding: GB18030
>> 
>> The same works on my MacBook with Java1.6.0_24
>> 
>> Clues?
>> 
>> --
>> Jan Høydahl, search solution architect
>> Cominvent AS - www.cominvent.com
>> 
>> 



Re: Problems with DIH and missing fields.

2011-04-01 Thread Marcelo Iturbe
Hello,
I was able to repeat this behaviour in Solr 3.1.0

The procedure is
 - rename the directory example-DIH/rss to example-DIH/gcontacts
 - modify solrconfig.xml to only load gcontacts
 - rename rss-data-config.xml to gcontacts-data-config.xml and modify (see
content below)
 - modify schema.xml

This is from my schema.xml

















this is my gcontacts-data-config.xml file



http://172.16.0.30/sayt2/contacts/testtim.xml";
processor="XPathEntityProcessor"
forEach="/feed/entry"
>














This is from my solrconfig.xml file







Thanks for your help.

Regards

On Fri, Apr 1, 2011 at 4:27 AM, Stefan Matheis <
matheis.ste...@googlemail.com> wrote:

> Marcelo,
>
> could you paste the relevant parts of your DIH config?
>
> Regards
> Stefan
>
> On Thu, Mar 31, 2011 at 9:55 PM, Marcelo Iturbe 
> wrote:
> > Hello,
> > I have an XML which contains personal contacts. Not all contacts have the
> > same fields (email, phone, postal).
> >
> > The problem is that when certain fields are NOT present,  SOLR is
> injecting
> > the previous contacts data.
> >
> > For example, assume the following from the XML feed:
> > 
> >Jane Doe
> >
> >Santiago
> >Region Metropolitana
> >Chile
> >
> >
> >Jeff Smith
> >
> >
> >
> >Ana Mercurio
> > > primary='true'>+56912345678
> >
> >
> > The second contact, will have the first contacts postal address.
> > The third contact, will have Janes Postal Address and Jeffs email
> address:
> >
> > 
> >
> >Ana Mercurio
> >
> >
> >+5612345678
> >
> >
> >jeff.sm...@gmail.com
> >
> >
> >Santiago
> >Region Metropolitana
> >Chile
> >
> > 
> >
> > This is how I have the fields specified in the schema.xml file:
> > > multiValued="true" default=" "/>
> > > multiValued="true"  default=" "/>
> > > multiValued="true"  default=" "/>
> >
> > What did I miss?
> >
> > Thanks for your help.
> >
>


Re: SolrException: No such core: core1

2011-04-01 Thread Shawn Heisey

On 4/1/2011 3:11 AM, Amel Fraisse wrote:

yes with this link : http://localhst:8983/solr/core1/admin  I have the same
message such :

HTTP ERROR: 404

NOT_FOUND

RequestURI=/solr/core1/admin


Try adding a trailing slash to the URL -- 
http://localhost:8983/solr/core0/admin/ and 
http://localhost:8983/solr/core1/admin/ ... without that extra 
character, you will get an error message about a missing core name, 
which also happens if you leave the core name out, as you've already seen.


The error you've gotten above looks like core1 is just not working at 
all.  Try core0 with the trailing slash, and see if you have links for 
both cores as Stefan asked.


Does jetty output any error messages during startup or when trying to 
access the URLs that do not work?  Those messages might go to stderr or 
might be logged, depending on exactly how you have it configured.  I 
believe that unless you've changed the logging configuration in jetty, 
they will go to stderr, so try starting it by hand and letting the error 
messages go to the console.


Shawn



Re: Highlight snippets for a set of known documents

2011-04-01 Thread Jay Luker
It turns out the answer is I'm a moron; I had an unnoticed "&rows=1"
nestled in the querystring I was testing with.

Anyway, thanks for replying!

--jay

On Fri, Apr 1, 2011 at 4:25 AM, Stefan Matheis
 wrote:
> Jay,
>
> i'm not sure, but did you try it w/ brackets?
> q=foobar&fq={!q.op=OR}(id:1 id:5 id:11)
>
> Regards
> Stefan
>
> On Thu, Mar 31, 2011 at 6:40 PM, Jay Luker  wrote:
>> Hi all,
>>
>> I'm trying to get highlight snippets for a set of known documents and
>> I must being doing something wrong because it's only sort of working.
>>
>> Say my query is "foobar" and I already know that docs 1, 5 and 11 are
>> matches. Now I want to retrieve the highlight snippets for the term
>> "foobar" for docs 1, 5 and 11. What I assumed would work was something
>> like: "...&q=foobar&fq={!q.op=OR}id:1 id:5 id:11...". This returns
>> numfound=3 in the response, but I only get the highlight snippets for
>> document id:1. What am I doing wrong?
>>
>> Thanks,
>> --jay
>>
>


Re: Problems with DIH and missing fields.

2011-04-01 Thread Marcelo Iturbe
Solved it!

commonField="true"
should be
commonField="false"

mistakes that happen when copying source a sample proyect...

Thanks for your help.


On Fri, Apr 1, 2011 at 10:29 AM, Marcelo Iturbe  wrote:

>
> Hello,
> I was able to repeat this behaviour in Solr 3.1.0
>
> The procedure is
>  - rename the directory example-DIH/rss to example-DIH/gcontacts
>  - modify solrconfig.xml to only load gcontacts
>  - rename rss-data-config.xml to gcontacts-data-config.xml and modify (see
> content below)
>  - modify schema.xml
>
> This is from my schema.xml
> 
>  />
>
> 
> 
>
>  multiValued="true" default=" "/>
>  multiValued="true"  default=" "/>
>  multiValued="true"  default=" "/>
>
>  multiValued="true"  default=" "/>
>
>  multiValued="true" />
> 
> 
> 
> 
> 
>
> this is my gcontacts-data-config.xml file
> 
> 
> 
>  pk="link"
> url="http://172.16.0.30/sayt2/contacts/testtim.xml";
> processor="XPathEntityProcessor"
> forEach="/feed/entry"
> >
>
>  commonField="true" />
>  xpath="/feed/entry/link[@rel='edit']/@href" commonField="true" />
>
>  commonField="true"/>
>  xpath="/feed/entry/link[@rel='edit']/@href" />
>  commonField="true"/>
>  commonField="true"/>
>  commonField="true"/>
>  xpath="/feed/entry/postalAddress"  commonField="true"/>
> 
> 
> 
>
> This is from my solrconfig.xml file
> 
> 
> 
> 
> 
> 
>
> Thanks for your help.
>
> Regards
>
>
> On Fri, Apr 1, 2011 at 4:27 AM, Stefan Matheis <
> matheis.ste...@googlemail.com> wrote:
>
>> Marcelo,
>>
>> could you paste the relevant parts of your DIH config?
>>
>> Regards
>> Stefan
>>
>> On Thu, Mar 31, 2011 at 9:55 PM, Marcelo Iturbe 
>> wrote:
>> > Hello,
>> > I have an XML which contains personal contacts. Not all contacts have
>> the
>> > same fields (email, phone, postal).
>> >
>> > The problem is that when certain fields are NOT present,  SOLR is
>> injecting
>> > the previous contacts data.
>> >
>> > For example, assume the following from the XML feed:
>> > 
>> >Jane Doe
>> >
>> >Santiago
>> >Region Metropolitana
>> >Chile
>> >
>> >
>> >Jeff Smith
>> >
>> >
>> >
>> >Ana Mercurio
>> >> > primary='true'>+56912345678
>> >
>> >
>> > The second contact, will have the first contacts postal address.
>> > The third contact, will have Janes Postal Address and Jeffs email
>> address:
>> >
>> > 
>> >
>> >Ana Mercurio
>> >
>> >
>> >+5612345678
>> >
>> >
>> >jeff.sm...@gmail.com
>> >
>> >
>> >Santiago
>> >Region Metropolitana
>> >Chile
>> >
>> > 
>> >
>> > This is how I have the fields specified in the schema.xml file:
>> >> > multiValued="true" default=" "/>
>> >> > multiValued="true"  default=" "/>
>> >> stored="true"
>> > multiValued="true"  default=" "/>
>> >
>> > What did I miss?
>> >
>> > Thanks for your help.
>> >
>>
>
>


Re: wildcard search inconsistencies

2011-04-01 Thread lboutros
'conditional' seems to be stemmed into the word 'condit' in the index.

So your results are normal.

As you said, mixing wildcards searching and stemmed fields is not
recommanded.

Ludovic.

2011/4/1 Melanie Drake [via Lucene] <
ml-node+2763787-65059921-383...@n3.nabble.com>

> I noticed an inconsistency in results when performing wildcard searches.
>  When searching on variations of "conditional" the following results
> occurred:
>
> conditional - hits
> conditional* - hits
> conditi* - hits
> condit* - hits
> con*al - no hits
> c?nditional - no hits
> c*ld - hits (on a different word: "child")
>
> I don't see an obvious pattern to when the wildcard searches work.
>
> In a response to another post, I read that stemming will cause wildcard
> searches to behave strangely.  I believe we may be using stemming, although
> the only configuration I see is the list of words protected against stemming
> defined in protwords.txt.
>
> Also, I'm not sure if it's helpful, but I see a vague Solr error in my
> server log (jboss) any time I perform a search (whether successful or not):
> ERROR [STDERR]  org.apache.solr.core.SolrCore execute
> INFO: [core0] webapp=null path=/select
> params={q=condi*al&fq=url%3A%28%22%2F used for filtering>&fl=score&hl=true&hl.fragsize=50&hl.snippets=3} hits=0
> status=0 QTime=0
>
> The developer who implemented our search solution is no longer with our
> company, so I'm just looking for any information useful to investigate this
> issue.  I apologize if I ommitted any necessary information.  Thanks!
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/wildcard-search-inconsistencies-tp2763787p2763787.html
>  To start a new topic under Solr - User, email
> ml-node+472068-1765922688-383...@n3.nabble.com
> To unsubscribe from Solr - User, click 
> here.
>
>


-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/wildcard-search-inconsistencies-tp2763787p2763841.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: wildcard search inconsistencies

2011-04-01 Thread lboutros
And to be more helpfull, you can activate the debug (debugQuery=on in the
query) mode to see the transform query :

for instance 'field:contitional' :

field:conditional
field:conditional
field:condit
field:condit

for 'field:conditional*' :

field:conditional*
field:conditional*
field:conditional*
field:conditional*

and for 'field:con*al' :

field:con*al
field:con*al
field:con*al
field:con*al

but in the field index the word 'conditional' is stored as 'condit' and is
not matched by 'con*al'.
but the words 'conceal' stored as is, 'congealable' stored as 'congeal' are
matched and retrieved (and highlighted if well configured).

Ludovic.

-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/wildcard-search-inconsistencies-tp2763787p2763918.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: wildcard search inconsistencies

2011-04-01 Thread Melanie Drake
Thanks, Ludovic.  That was it.  I added the word "conditional" to the
protected words file and I no longer see the odd search results when using
wildcards.  I will try to disable stemming altogether.  

Thanks again!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/wildcard-search-inconsistencies-tp2763787p2763934.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: ComplexPhraseQueryParser and wildcards

2011-04-01 Thread Erick Erickson
Here's the Solr JIRA:
You need to create a login here:
https://issues.apache.org/jira/secure/Dashboard.jspa

https://issues.apache.org/jira/browse/SOLR

From there it should be pretty
straight-forward.

And here are some pointers for using the JIRA...

http://wiki.apache.org/solr/HowToContribute#JIRA_tips_.28our_issue.2BAC8-bug_tracker.29


Expect some questions to be asked, and the more information you can supply
the better. Very best of all would be a self-contained test case, but this
is often difficult.

Hope that helps
Erick

On Fri, Apr 1, 2011 at 9:53 AM, jmr  wrote:

>
> Erick Erickson wrote:
> >
> > Ohhh, my. Well, in that case I'm afraid I'm out of ideas. Can you
> > raise a JIRA on the crash? Please include the field definition
> > and an example of the query you're sending. This should
> > be fixed...
> >
>
> How can I do this ?
> Sorry I'm just starting in using Solr and related stuff.
>
> Jean-Michel
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/ComplexPhraseQueryParser-and-wildcards-tp2742244p2763410.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


wildcard search inconsistencies

2011-04-01 Thread Melanie Drake
I noticed an inconsistency in results when performing wildcard searches. 
When searching on variations of "conditional" the following results
occurred:

conditional - hits
conditional* - hits
conditi* - hits
condit* - hits
con*al - no hits
c?nditional - no hits
c*ld - hits (on a different word: "child")

I don't see an obvious pattern to when the wildcard searches work.

In a response to another post, I read that stemming will cause wildcard
searches to behave strangely.  I believe we may be using stemming, although
the only configuration I see is the list of words protected against stemming
defined in protwords.txt.

Also, I'm not sure if it's helpful, but I see a vague Solr error in my
server log (jboss) any time I perform a search (whether successful or not):
ERROR [STDERR]  org.apache.solr.core.SolrCore execute
INFO: [core0] webapp=null path=/select
params={q=condi*al&fq=url%3A%28%22%2F&fl=score&hl=true&hl.fragsize=50&hl.snippets=3}
hits=0 status=0 QTime=0

The developer who implemented our search solution is no longer with our
company, so I'm just looking for any information useful to investigate this
issue.  I apologize if I ommitted any necessary information.  Thanks!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/wildcard-search-inconsistencies-tp2763787p2763787.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr 1.4.1 and Tika 0.9 - some tests not passing

2011-04-01 Thread Andreas Kemkes
Thank you.  That is valuable guidance.

In light of the recent release of Solr 3.1, I decided to first try that 
distribution, as it already uses Tika 0.8, which is much closer to my target.

Out of the box (i.e., w/o replacing the Tika and PDFBox libraries) the tests 
pass, yet I see the error below.  When I change

ignoreException("unknown field 'a'");

to 

ignoreException("unknown field 'meta'");

in the testDefaultField test, the error output goes away.

I am wondering, if that particular error is expected, or whether the error 
should in fact be "unknown field 'a'" and I'm only masking an issue with the 
change.

All extraction test pass also after I replace the Tika and PDFBox libraries 
with 
the newer versions.

-- Andreas

test:
[junit] Testsuite: org.apache.solr.handler.ExtractingRequestHandlerTest
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 6.424 sec
[junit] 
[junit] - Standard Error -
[junit] 01/04/2011 22:49:59 org.apache.solr.common.SolrException log
[junit] SEVERE: org.apache.solr.common.SolrException: ERROR:unknown field 
'meta'
[junit] at 
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:321)
[junit] at 
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)

[junit] at 
org.apache.solr.handler.extraction.ExtractingDocumentLoader.doAdd(ExtractingDocumentLoader.java:121)

[junit] at 
org.apache.solr.handler.extraction.ExtractingDocumentLoader.addDoc(ExtractingDocumentLoader.java:126)

[junit] at 
org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:198)

[junit] at 
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:55)

[junit] at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)

[junit] at org.apache.solr.core.SolrCore.execute(SolrCore.java:1360)
[junit] at 
org.apache.solr.util.TestHarness.queryAndResponse(TestHarness.java:337)
[junit] at 
org.apache.solr.handler.ExtractingRequestHandlerTest.loadLocal(ExtractingRequestHandlerTest.java:373)

[junit] at 
org.apache.solr.handler.ExtractingRequestHandlerTest.testDefaultField(ExtractingRequestHandlerTest.java:156)







From: Chris Hostetter 
To: solr-user@lucene.apache.org
Sent: Thu, March 31, 2011 7:19:05 PM
Subject: Re: Solr 1.4.1 and Tika 0.9 - some tests not passing


: I'm still interested on what steps I could take to get to the bottom of the 
: failing tests.  Is there additional information that I should provide?

i'm not really up to speed on what might have changed in Tika 0.9 to cause 
this, but the best thing to do would probably be to look at what *does* 
work compared to what doesn't work.

if *none* of hte asserts for dealing with an html doc work, that suggests 
that fundementally something is just completley broken about the html 
parsing.

Consider this first assertion failure...

: assertQ(req("title:Welcome"), "//*[@numFound='1']");

...in the context of what you said tika 0.9 gives you for that doc on the 
command line...

: $ java -jar tika-app-0.9.jar 
: 
../../../apache-solr-1.4.1-with-tika-0.9/contrib/extraction/src/test/resources/simple.html

...
: Welcome to Solr

...if that basic little bit of info can't be extracted, then i'm guessing 
nothing is being extracted.

I would suggest you run the example (with the 0.9 tika jars) and manually 
attempt to index one document, and then use the schema browser to see 
exactly what gets indexed.

you may need to experiment with tweaking the config options for the 
extraction handler.

-Hoss


Re: [Solr Wiki] Update of "Troubleshooting HTTP Status 404 - missing core name in path" by Gabriele Kahlout

2011-04-01 Thread Chris Hostetter

Gabriele:

Creating a wiki page really isn't the approprate way to ask for help 
diagnosing a problem -- that's why we have the user mailing list.

Regarding your specific problem, note that this...

: $SOLR_HOME/solr.xml:
: {{{
: 
: 
:   
: 
: }}}

...is not a valid solr.xml file ... that is a context file for tomcat, and 
doesn't belong in the $SOLR_HOME dir, it belongs in the 
$CATALINA_HOME/conf/Catalina/localhost/

(there is an unfortunate naming colision that takes place, because 
"solr.xml" is what a tomcat context file should be named if you want the 
path to be "/solr/" but tomcat context files are not hte same as the 
solr.xml files that are used to tell solr what cores to load)


-Hoss


Using the Data Import Handler with SQLite

2011-04-01 Thread Zac Smith
I hope this question is being directed to the right place ...

I am trying to use SQLite (v3) as a source for the Data Import Handler. I am 
using a sqllite jdbc driver (link below) and this works when using with only 
one entity. As soon as I add a sub-entity it falls over with a locked DB error: 
"java.sql.SQLException: database is locked".
Now I realize that you can only have one connection open to SQLite at a time. 
So I assume that the first query is leaving a connection open before it moves 
onto the sub-query. I am not sure if the issue would be in the jdbc driver or 
the DIH. It works fine with SQL Server.

Is this a bug? Or something that just isn't possible with SQLite?

Here is a sample of my data config file:

  
  


 




  


sqllite jdbc driver : http://www.zentus.com/sqlitejdbc/


Re: ExternalFileField with whitespaces

2011-04-01 Thread Chris Hostetter

: Subject: ExternalFileField with whitespaces
...
: I think it is a bug, therefore I opened issue SOLR-2335.
: 
: To handle this problem we now have to decide if we implement a
: workaround in our application to replace whitespaces or if we try to
: patch solr to work with whitepaces in dynamic ExternalFileFields.
: Does anybody have an idea how complex it will be to provide a patch
: for this problem? Or is there another way to query for such fields?

I don't think there is any actual problem in ExternalFileFields with 
fields that have whitespace in their names -- at least, not from what 
you've said.

what youv'e described is a limitation in how the FunctionQParser works, 
(hence the parser error) and i've updated your Jira issue accordingly.

As i mentioned in the issue, i think we can provide a more verbose hook in 
the parser to let people refer to field names that have whitespace and 
what not in them, but if you're use case is as simple as you 
describe and you are interested in other quick solutions you might 
want to consider your own QParser that just takes in the raw field name 
and constructs the FunctionQuery (wrapped aroung the 
ExternalFileField.getValueSource results) directly -- you don't really 
need to worry about the level of nested function w/arg parsing that 
the FunctionQParser so it would be a lot simpler (probably only a few 
lines of code)



-Hoss


Re: Comment Unused portions in solrconfig

2011-04-01 Thread Chris Hostetter

: I have little bit concerned about, if I comment those unused modules from
: solrconfig.xml, whether it will used to increase search performance little
: bit. ?? Or if I comment then it will affect any of the Solr
: operations/performance ??

there may be some things you are using w/o realizing it so you should 
definitely test out any changes -- but once you know you don't need 
something, commenting it out should be fine.

is it worth it?

probably not.  but in general most unuse request handlers and components 
and what not take up very little resources -- a small amount of ram that 
you likely won' even notice getting back. it's certainly possible for a 
solr plugin to eat up huge gobs or ram and/or spin up background threads 
that consume lots of CPU even when you don't use them -- but nothing 
in the example configs behaves like that.



-Hoss


Multiple terms in query

2011-04-01 Thread Prav Buz
Hi,

When I search multiple terms in solr query , though I get all the results
containing either of the terms , but the results which contain both terms
are outranked by the others. For example:

Panasonic Camera

most of the top results are those which contain "Panasonic" ,  and they are
of accessories rather than a camera. but when I search Panasonic Camera^16 I
get what I want.

What's the correct method of doing this? that is when multiple terms are
searched , how to make sure , records contain all the terms shown first in
solr?


thanks & regards

Prav.


Re: Multiple terms in query

2011-04-01 Thread Paul Libbrecht
Depending on the query type you use, you can give weight to particular fields.
In dismax, the queried fields can be given a weight.

paul


Le 2 avr. 2011 à 07:43, Prav Buz a écrit :

> Hi,
> 
> When I search multiple terms in solr query , though I get all the results
> containing either of the terms , but the results which contain both terms
> are outranked by the others. For example:
> 
> Panasonic Camera
> 
> most of the top results are those which contain "Panasonic" ,  and they are
> of accessories rather than a camera. but when I search Panasonic Camera^16 I
> get what I want.
> 
> What's the correct method of doing this? that is when multiple terms are
> searched , how to make sure , records contain all the terms shown first in
> solr?
> 
> 
> thanks & regards
> 
> Prav.



Re: Comment Unused portions in solrconfig

2011-04-01 Thread rahul
thanks for your info.


On Sat, Apr 2, 2011 at 9:51 AM, Chris Hostetter-3 [via Lucene] <
ml-node+2766175-1482636196-340...@n3.nabble.com> wrote:

>
> : I have little bit concerned about, if I comment those unused modules from
>
> : solrconfig.xml, whether it will used to increase search performance
> little
> : bit. ?? Or if I comment then it will affect any of the Solr
> : operations/performance ??
>
> there may be some things you are using w/o realizing it so you should
> definitely test out any changes -- but once you know you don't need
> something, commenting it out should be fine.
>
> is it worth it?
>
> probably not.  but in general most unuse request handlers and components
> and what not take up very little resources -- a small amount of ram that
> you likely won' even notice getting back. it's certainly possible for a
> solr plugin to eat up huge gobs or ram and/or spin up background threads
> that consume lots of CPU even when you don't use them -- but nothing
> in the example configs behaves like that.
>
>
>
> -Hoss
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Comment-Unused-portions-in-solrconfig-tp2762664p2766175.html
>  To unsubscribe from Comment Unused portions in solrconfig, click 
> here.
>
>


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Comment-Unused-portions-in-solrconfig-tp2762664p2766365.html
Sent from the Solr - User mailing list archive at Nabble.com.