Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Kamaljeet Kaur
On Fri, Aug 16, 2013 at 11:58 PM, Kamal Kaur kamal.kaur...@gmail.com wrote:
 What should I do?


Can you help make me understand the work flow?

-- 
Kamaljeet Kaur

kamalkaur188.wordpress.com
facebook.com/kaur.188




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Where-is-the-webapps-directory-of-servlet-container-tp4084968p4085233.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Problems installing Solr4 in Jetty9

2013-08-17 Thread Tim Vaillancourt

Try adding 'ext' to your OPTIONS= line for Jetty.

Tim

On 16/08/13 05:04 AM, Dmitry Kan wrote:

Hi,

I have the following jar in jetty/lib/ext:

log4j-1.2.16.jar
slf4j-api-1.6.6.jar
slf4j-log4j12-1.6.6.jar
jcl-over-slf4j-1.6.6.jar
jul-to-slf4j-1.6.6.jar

do you?

Dmitry


On Thu, Aug 8, 2013 at 12:49 PM, Spadezjames_will...@hotmail.com  wrote:


Apparently this is the error:

2013-08-08 09:35:19.994:WARN:oejw.WebAppContext:main: Failed startup of
context
o.e.j.w.WebAppContext@64a20878
{/solr,file:/tmp/jetty-0.0.0.0-8080-solr.war-_solr-any-/webapp/,STARTING}{/solr.war}
org.apache.solr.common.SolrException: Could not find necessary SLF4j
logging
jars. If using Jetty, the SLF4j logging jars need to go in the jetty
lib/ext
directory. For other containers, the corresponding directory should be
used.
For more information, see: http://wiki.apache.org/solr/SolrLogging



--
View this message in context:
http://lucene.472066.n3.nabble.com/Problems-installing-Solr4-in-Jetty9-tp4083209p4083224.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Problems installing Solr4 in Jetty9

2013-08-17 Thread Chris Collins
I am using 4.4 in an embedded mode and found that it has a dependency on hadoop 
2.0.5. alpha that in turn depends on jetty 6.1.26 which I think pre-dates 
electricity :-}

C

On Aug 17, 2013, at 12:44 AM, Tim Vaillancourt t...@elementspace.com wrote:

 Try adding 'ext' to your OPTIONS= line for Jetty.
 
 Tim
 
 On 16/08/13 05:04 AM, Dmitry Kan wrote:
 Hi,
 
 I have the following jar in jetty/lib/ext:
 
 log4j-1.2.16.jar
 slf4j-api-1.6.6.jar
 slf4j-log4j12-1.6.6.jar
 jcl-over-slf4j-1.6.6.jar
 jul-to-slf4j-1.6.6.jar
 
 do you?
 
 Dmitry
 
 
 On Thu, Aug 8, 2013 at 12:49 PM, Spadezjames_will...@hotmail.com  wrote:
 
 Apparently this is the error:
 
 2013-08-08 09:35:19.994:WARN:oejw.WebAppContext:main: Failed startup of
 context
 o.e.j.w.WebAppContext@64a20878
 {/solr,file:/tmp/jetty-0.0.0.0-8080-solr.war-_solr-any-/webapp/,STARTING}{/solr.war}
 org.apache.solr.common.SolrException: Could not find necessary SLF4j
 logging
 jars. If using Jetty, the SLF4j logging jars need to go in the jetty
 lib/ext
 directory. For other containers, the corresponding directory should be
 used.
 For more information, see: http://wiki.apache.org/solr/SolrLogging
 
 
 
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Problems-installing-Solr4-in-Jetty9-tp4083209p4083224.html
 Sent from the Solr - User mailing list archive at Nabble.com.
 
 



Re: struggling with solr.WordDelimiterFilterFactory

2013-08-17 Thread Erick Erickson
Vicky:

Both examples work fine for me. Can you show us the results of adding
debug=query?
It does NOT work if I search content:speedPost rather than
Content:speedPost though,
are you sure the casing of your field name case matches exactly?

Also, be sure to re-index your data. Use the admin/analysis page to see
what the transformations
are. Also, take a look at admin/schema browser to see what's actually _in_
your inde.

What does the admin/analysis page show?

And, BTW, it's somewhat inefficient to have the exact same analyzer in both
cases though
that's a fine place to start. If you have  'speed' 'post' and 'speedpost'
in your index, there's
no need to catenate them all back in the query, that's why the default WDFF
is set up
the way it is. But I'd only try refining it after I figured out what's
wrong with your setup though.

FWIW,
Erick



On Fri, Aug 16, 2013 at 8:38 AM, Aloke Ghoshal alghos...@gmail.com wrote:

 Hi,

 That's correct the Analyzers will get applied to both Index  Query time.
 In fact I do get results back for speedPost with this field definition.

 Regards,
 Aloke


 On Fri, Aug 16, 2013 at 5:21 PM, vicky desai vicky.de...@germinait.com
 wrote:

  Hi,
 
  Another Example I found is q=Content:wi-fi doesn't match for documents
 with
  word wifi. I think it is not catenating the query keywords correctly
 
 
 
  --
  View this message in context:
 
 http://lucene.472066.n3.nabble.com/struggling-with-solr-WordDelimiterFilterFactory-tp4085021p4085030.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 



Re: Problems installing Solr4 in Jetty9

2013-08-17 Thread Robert Muir
On Sat, Aug 17, 2013 at 3:59 AM, Chris Collins ch...@geekychris.com wrote:
 I am using 4.4 in an embedded mode and found that it has a dependency on 
 hadoop 2.0.5. alpha that in turn depends on jetty 6.1.26 which I think 
 pre-dates electricity :-}


I think this is only a test dependency ?


Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Paul Libbrecht
 What should I do?
 Can you help make me understand the work flow?

Kamaljeet,

in most servlet-containers (e.g. Tomcat or Jetty), there is such a directory 
called webapps.
In Sun Java App Server it is inside 
domains/domain-name/applications/j2ee-modules/.

Maybe it helps?
If not, please indicate the servlet container you chose.

paul





Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Kamaljeet Kaur
On Sat, Aug 17, 2013 at 8:20 PM, Paul Libbrecht-4 [via Lucene]
ml-node+s472066n4085256...@n3.nabble.com wrote:

 Maybe it helps?
 If not, please indicate the servlet container you chose.


I have installed java and solr 4.4.0. I guess I need to install Jetty
or Tomat. Not able to decide among both. But tried with Jetty. Is it
necessary to add new user to use Jetty??

-- 
Kamaljeet Kaur

kamalkaur188.wordpress.com
facebook.com/kaur.188




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Where-is-the-webapps-directory-of-servlet-container-tp4084968p4085260.html
Sent from the Solr - User mailing list archive at Nabble.com.

State sharing

2013-08-17 Thread Peyman Faratin
Hi

I have subclassed a SearchComponent (call this class S), and would like to 
implement the following transaction logic:

1- Client K calls the S's handler

2- S spawns a thread and immediately acks K using 
rb.rsp.add(status,complete) then terminates

public void process (ResponseBuilder rb) 
{
SolrParams params = rb.req.getParams();

try{ 
ExecutorService executorService = 
Executors.newCachedThreadPool();

Processor job = new  Processor(rb);

executorService.submit(job);

rb.rsp.add(status,complete);

}catch(Exception e) {e.printStackTrace();};
}

3- The thread S started (job above) does two chunks of logic in serial (call 
these B and C):

i) B does some processing and sends client K a series of status 
updates, then
ii) C does some processing and in turn sends K series of status updates 
then one final complete message
iii)  transaction ends

I am using SOLR 4.3.1. How can I support such a transaction in solr? I've tried 
sharing S's ResponseBuilder with the thread but presumably because S terminates 
in step 2 K will never see the response from B and C. In general I would like 
to implement a mechanism that can share processing state with the client in the 
same http session. 

thank you for your help 

Peyman




Stripping Payload Fields

2013-08-17 Thread Jeff Porter
I am in the middle of implementing the SOLR suggestion tool for our 
auto-suggest.  I think I have everything setup, but I want the suggester to 
suggest terms that are in a payloads field for us.  I have the suggestions 
returning correctly, but I want to eliminate the Payload field from the 
response.  See here (I would like to strip the |100):

 spellcheck: {
suggestions: [
  loj,
  {
numFound: 2,
startOffset: 1,
endOffset: 4,
suggestion: [
  lojas de artigos esportivos|100,
  lojas


Is there a particular filter that can strip that for me?

Thanks! 

Jeff




Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Paul Libbrecht
 Maybe it helps?
 If not, please indicate the servlet container you chose.
 
 I have installed java and solr 4.4.0. I guess I need to install Jetty
 or Tomat. Not able to decide among both. But tried with Jetty. Is it
 necessary to add new user to use Jetty??

Jetty comes bundled with Solr.
  http://lucene.apache.org/solr/4_4_0/tutorial.html

 java -jar start.jar
(which is the equivalent to double-clicking start.jar)

paul


Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Kamaljeet Kaur
On Sun, Aug 18, 2013 at 12:06 AM, Paul Libbrecht-4 [via Lucene]
ml-node+s472066n4085267...@n3.nabble.com wrote:

  java -jar start.jar
 (which is the equivalent to double-clicking start.jar)


Are they refering to solr-4.4.0/example/webapps directory here?

https://cwiki.apache.org/confluence/display/solr/Installing+Solr

But solr.war is already placed there. Is it fine?

-- 
Kamaljeet Kaur

kamalkaur188.wordpress.com
facebook.com/kaur.188




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Where-is-the-webapps-directory-of-servlet-container-tp4084968p4085277.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Paul Libbrecht
 Are they refering to solr-4.4.0/example/webapps directory here?
 https://cwiki.apache.org/confluence/display/solr/Installing+Solr
 But solr.war is already placed there. Is it fine?

I believe it is intended to be fine indeed ;-).
However any other installation with a webapps directory would be equivalent.

paul


Re: Stripping Payload Fields

2013-08-17 Thread tamanjit.bin...@yahoo.co.in
Why dont you copy the data you want to suggest onto another field and suggest
from there. Else the trimming will have to happen at the application end if
that luxury is available.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Stripping-Payload-Fields-tp4085264p4085288.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SOLR4 Spatial sorting and query string

2013-08-17 Thread William Bell
David,

We noticed in 4.5 that sort=geodist(store_geohash) asc does not work
anymore. It works only if we: sfield=store_geohashsort=geodist() asc

Thanks.


On Thu, Aug 15, 2013 at 9:10 AM, David Smiley (@MITRE.org) 
dsmi...@mitre.org wrote:

 Hi Roy,

 You'll have to calculate this client-side.  I am aware of this conundrum
 and
 I put up a TODO JIRA item for it here months ago:
 https://issues.apache.org/jira/browse/SOLR-4633It actually shouldn't
 be
 that hard to do.

 ~ David


 roySolr wrote
  Hello David,
 
  The first months there will be not that many points in a doc, i will keep
  the topic in mind!
 
  The next step is that i want to now which location matched my query.
  Example:
 
  Product A is available in 3 stores, the doc looks like this:
 /
  doc
  str name=productname
  Product A
  /str
  arr name='store_coordinates'
 
  str
  store1_geo
  /str
 
  str
  store2_geo
  /str
 
  str
  store3_geo
  /str
  /arr
  arr name=storeinfo
  str
  London#store1_geo
  /str
  str
  Amsterdam#store2_geo
  /str
  str
  New York#store3_geo
  /str
  /arr
  /doc
 /
 
  I query the index with my location set to Berlin and a radius of 250km. I
  know that this result gets back on the first place because it's close to
  Amsterdam(store2_geo). But normally, How can i know which one matched my
  query as closest point? Is it possible to get this back? I can do it in
 my
  application but with 200 stores in a doc i don't think it's the best
  solution.
 
  Thanks,
 
  Roy





 -
  Author:
 http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/SOLR4-Spatial-sorting-and-query-string-tp4084318p4084816.html
 Sent from the Solr - User mailing list archive at Nabble.com.




-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076


Re: Distance sort on a multi-value field

2013-08-17 Thread William Bell
We have been using 2155 for over 6 months in production with over 2M hits
every 10 minutes. No OOM yet.

2155 seems great, and would this issue be any worse than 2155?



On Wed, Aug 14, 2013 at 4:08 PM, Jeff Wartes jwar...@whitepages.com wrote:


 Hm, Give me all the stores that only have branches in this area might be
 a plausible use case for farthest distance.
 That's essentially a contains question though, so maybe that's already
 supported? I guess it depends on how contains/intersects/etc handle
 multi-values. I feel like multi-value interaction really deserves its own
 section in the documentation.


 I'm aware of the memory issue, but it seems like if you want sort
 multi-valued points, it's either this or try to pull in the 2155 patch. In
 general I'd rather go with the thing that's being maintained.


 Thanks for the code pointer. You're right, that doesn't look like
 something I can easily use for more general aggregate scoring control. Ah
 well.



 On 8/14/13 12:35 PM, Smiley, David W. dsmi...@mitre.org wrote:

 
 
 On 8/14/13 2:26 PM, Jeff Wartes jwar...@whitepages.com wrote:
 
 
 I'm still pondering aggregate-type operations for scoring multi-valued
 fields (original thread: http://goo.gl/zOX53f ), and it occurred to me
 that distance-sort with SpatialRecursivePrefixTreeFieldType must be doing
 something like that.
 
 It isn't.
 
 
 Somewhat surprisingly I don't see this in the documentation anywhere, but
 I presume the example query: (from:
 http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4)
 q={!geofilt score=distance sfield=geo pt=54.729696,-98.525391 d=10}
 
 assigns the distance/score based on the *closest* lat/long if the sfield
 is a multi-valued field.
 
 Yes it does.
 
 
 That's a reasonable default, but it's a bit arbitrary. Can I sort based
 on
 the *furthest* lat/long in the document? Or the average distance?
 
 Anyone know more about how this works and could give me some pointers?
 
 I considered briefly supporting the farthest distance but dismissed it as
 I saw no real use-case.  I didn't think of the average distance; that's
 plausible.  Any way, you're best bet is to dig into the code.  The
 relevant part is ShapeFieldCacheDistanceValueSource.
 
 FYI something to keep in mind:
 https://issues.apache.org/jira/browse/LUCENE-4698
 
 ~ David
 




-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076


Re: Where is the webapps directory of servlet container?

2013-08-17 Thread Kamaljeet Kaur
On Sun, Aug 18, 2013 at 1:26 AM, Paul Libbrecht-4 [via Lucene]
ml-node+s472066n408528...@n3.nabble.com wrote:
 I believe it is intended to be fine indeed ;-).
 However any other installation with a webapps directory would be equivalent.


Ok ;-)\

Copy the Solr Home directory apache-solr-4.x.0/example/solr/ from the
distribution to your desired Solr Home location.

Now what is this desired Solr Home location?
Why don't they write clearly?
Or why I can't understand?


-- 
Kamaljeet Kaur

kamalkaur188.wordpress.com
facebook.com/kaur.188




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Where-is-the-webapps-directory-of-servlet-container-tp4084968p4085297.html
Sent from the Solr - User mailing list archive at Nabble.com.