Re: counter field

2012-04-07 Thread Manish Bafna
Our data comes from file system and from web and so adding the
auto-increment field at the datasource is not possible.

On Fri, Apr 6, 2012 at 6:50 PM, Shawn Heisey s...@elyograg.org wrote:

 On 4/5/2012 1:53 AM, Manish Bafna wrote:

 Hi,
 Is it possible to define a field as Counter Column which can be
 auto-incremented.


 Manish,

 Where does your data come from?  Can you add the autoincrement field to
 the data source?

 My data comes from MySQL, where the private key is an autoincrement field.
  MySQL is very good at autoincrement fields.

 Walter, we do have two unique ID values in our system, enforced by MySQL,
 and it hasn't caused us any problems yet.  One is the autoincrement field
 just mentioned and the other is another id that is specific to our
 application.  We use the autoincrement field to identify deleted documents
 and as a position indicator for the build program to add new documents to
 Solr.  The other unique field is Solr's uniqueKey.

 Thanks,
 Shawn




No webadmin for trunk?

2012-04-07 Thread Darren Govoni
Hi,
  Just updated solr trunk and tried the java -jar start.jar and
localhost:8983/solr/admin.not found.

Where did it go?

thanks.



Re: No webadmin for trunk?

2012-04-07 Thread Jamie Johnson
just go to localhost:8983/solr and you'll see the updated interface.

On Sat, Apr 7, 2012 at 8:23 AM, Darren Govoni dar...@ontrenet.com wrote:
 Hi,
  Just updated solr trunk and tried the java -jar start.jar and
 localhost:8983/solr/admin.not found.

 Where did it go?

 thanks.



Re: No webadmin for trunk?

2012-04-07 Thread Darren Govoni
HTTP ERROR: 404
Problem accessing /solr. Reason:

Not Found



Powered by Jetty://

On Sat, 2012-04-07 at 09:04 -0400, Jamie Johnson wrote:
 just go to localhost:8983/solr and you'll see the updated interface.
 
 On Sat, Apr 7, 2012 at 8:23 AM, Darren Govoni dar...@ontrenet.com wrote:
  Hi,
   Just updated solr trunk and tried the java -jar start.jar and
  localhost:8983/solr/admin.not found.
 
  Where did it go?
 
  thanks.
 
 




Re: No webadmin for trunk?

2012-04-07 Thread Darren Govoni
start.jar has no apps in it at all.

On Sat, 2012-04-07 at 09:47 -0400, Darren Govoni wrote:
 HTTP ERROR: 404
 Problem accessing /solr. Reason:
 
 Not Found
 
 
 
 Powered by Jetty://
 
 On Sat, 2012-04-07 at 09:04 -0400, Jamie Johnson wrote:
  just go to localhost:8983/solr and you'll see the updated interface.
  
  On Sat, Apr 7, 2012 at 8:23 AM, Darren Govoni dar...@ontrenet.com wrote:
   Hi,
Just updated solr trunk and tried the java -jar start.jar and
   localhost:8983/solr/admin.not found.
  
   Where did it go?
  
   thanks.
  
  
 
 




Re: No webadmin for trunk?

2012-04-07 Thread Rafał Kuć
Hello!

Did you run 'ant example' ?

-- 
Regards,
 Rafał Kuć
 Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch

 start.jar has no apps in it at all.

 On Sat, 2012-04-07 at 09:47 -0400, Darren Govoni wrote:
 HTTP ERROR: 404
 Problem accessing /solr. Reason:
 
 Not Found
 
 
 
 Powered by Jetty://
 
 On Sat, 2012-04-07 at 09:04 -0400, Jamie Johnson wrote:
  just go to localhost:8983/solr and you'll see the updated interface.
  
  On Sat, Apr 7, 2012 at 8:23 AM, Darren Govoni dar...@ontrenet.com wrote:
   Hi,
Just updated solr trunk and tried the java -jar start.jar and
   localhost:8983/solr/admin.not found.
  
   Where did it go?
  
   thanks.
  
  
 
 








Re: No webadmin for trunk?

2012-04-07 Thread Darren Govoni
Yep. I did all kinds of ant clean, ant dist, ant example, etc.

My trunk rev.

At revision 1310773.

Example start.jar is broken. No webapp inside. :(

On Sat, 2012-04-07 at 16:11 +0200, Rafał Kuć wrote:
 Hello!
 
 Did you run 'ant example' ?
 




Re: No webadmin for trunk?

2012-04-07 Thread Rafał Kuć
Hello!

start.jar shouldn't contain any webapp. If you look at the 'example'
directory, you'll notice that there is a 'webapps' directory which
should contain solr.war file.

Btw. revision 1307647 works without a problem. I'll checkout trunk in
a few in try with the newest revision.

-- 
Regards,
 Rafał Kuć
 Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch

 Yep. I did all kinds of ant clean, ant dist, ant example, etc.

 My trunk rev.

 At revision 1310773.

 Example start.jar is broken. No webapp inside. :(

 On Sat, 2012-04-07 at 16:11 +0200, Rafał Kuć wrote:
 Hello!
 
 Did you run 'ant example' ?
 







Re: No webadmin for trunk?

2012-04-07 Thread Darren Govoni
K. There is a solr.war in the webapps directory. But still get the 404.

On Sat, 2012-04-07 at 16:19 +0200, Rafał Kuć wrote:
 Hello!
 
 start.jar shouldn't contain any webapp. If you look at the 'example'
 directory, you'll notice that there is a 'webapps' directory which
 should contain solr.war file.
 
 Btw. revision 1307647 works without a problem. I'll checkout trunk in
 a few in try with the newest revision.
 




Re: No webadmin for trunk?

2012-04-07 Thread Darren Govoni
Now, it comes up. Not sure why its acting weird. Will continue to look
at it.

On Sat, 2012-04-07 at 10:23 -0400, Darren Govoni wrote:
 K. There is a solr.war in the webapps directory. But still get the 404.
 
 On Sat, 2012-04-07 at 16:19 +0200, Rafał Kuć wrote:
  Hello!
  
  start.jar shouldn't contain any webapp. If you look at the 'example'
  directory, you'll notice that there is a 'webapps' directory which
  should contain solr.war file.
  
  Btw. revision 1307647 works without a problem. I'll checkout trunk in
  a few in try with the newest revision.
  
 
 




Fwd: request about snippets

2012-04-07 Thread alessio crisantemi
Dear all,
I configured my Nutch (1.4) for works with Solr (1.4.1) and I crawl and
index with success my website.

I have only a problem with the results of my researches.
Into all results, the snippets have a raw with a string where I can read
all the categories of my website. I attached a screen shot for explain:
here, the no good raw is Mercoledì Apr 04 parent Home NEWSLOT/VLT
SCOMMESSE ONLINE LOTTERIE Politica Video Live Score )

This is a problem, because if solr read for any page the same raw, when my
query is the same word of this raw (eg: 'ONLINe') I have all my solr index
like a result.

When I can jump this raw during my crawling? Is possible exclude this raw?
thank you in adavande
alessio


Two questions about the Ngramtokenizerfactory

2012-04-07 Thread neosky
I use the solr 3.5 version
1. It seems that the Ngramtokenizerfactory only token the first 1024
characters. I search the problem on the Internet, somebody had noticed the
bug in 2007, but I can't find the solution.
ps:  my max field length has been modified 
maxFieldLength5/maxFieldLength
This is very critical for me.

2.the second questions that when I defines the 
 minGramSize=3
 maxGramSize=8
 what happens when I search a query length is 5. Does it work?
My consideration is to use the copyfiled to specify the gram from 3,8, I am
not sure it is a solution.I am very worry about the index speed. I spend
more than 6 hours to index the gram from 7,8 for testing.
Thanks!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Two-questions-about-the-Ngramtokenizerfactory-tp3893045p3893045.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SolrCloud Zookeeper view does not work on latest snapshot

2012-04-07 Thread Stefan Matheis
Hey Jamie

On Saturday, April 7, 2012 at 2:45 AM, Jamie Johnson wrote: 
 Thanks Ryan. So to be clear this is a bug then? I went into the
 cloud.js and changed the url used to access this information so that
 it would work, wasn't sure if it was kosher or not.

Yes, it's a bug. My only installation with Zookeeper is a SingleCore-Setup and 
there it's still working -.- Created 
https://issues.apache.org/jira/browse/SOLR-3339 and already attached a patch - 
could you confirm that it's changing more or less them same than you did to 
bring back your local installation?

Regards
Stefan



Suggester not working for digit starting terms

2012-04-07 Thread jmlucjav
Hi,

I am using Suggester component, as advised in Solr3 book (using solr3.5):
searchComponent name=suggest class=solr.SpellCheckComponent
lst name=spellchecker
str name=namea_suggest/str
str 
name=classnameorg.apache.solr.spelling.suggest.Suggester/str
str
name=lookupImplorg.apache.solr.spelling.suggest.fst.FSTLookup/str
str name=fielda_suggest/str
str name=buildOnCommittrue/str
int name=weightBuckets100/int
/lst
/searchComponent
requestHandler name=/suggest class=solr.SearchHandler
lst name=defaults
str name=spellchecktrue/str
str name=spellcheck.dictionarya_suggest/str
str name=spellcheck.onlyMorePopulartrue/str
str name=spellcheck.count5/str
str name=spellcheck.collatetrue/str
/lst
arr name=components
strsuggest/str
/arr
/requestHandler

But, even if it works fine with words, it seems it does not work for terms
starting with diggits. For example:
http://localhost:8983/solr/suggest?q=500
gets 0 results, but I know '500 $' is in the a_suggest field, as I can find
many hits by:
http://localhost:8983/solr/select/?q={!prefix f=a_suggest}500

Am I missing something? I have been trying to play with
spellcheck.onlyMorePopular and spellcheck.accuracy but I get the same
results.

thansk
xab

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-not-working-for-digit-starting-terms-tp3893433p3893433.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SolrCloud Zookeeper view does not work on latest snapshot

2012-04-07 Thread Jamie Johnson
Yes very similar. I had hard coded /solr but it was these locations. I'll
update to use the provided patch and reverify on Monday.

On Saturday, April 7, 2012, Stefan Matheis matheis.ste...@googlemail.com
wrote:
 Hey Jamie

 On Saturday, April 7, 2012 at 2:45 AM, Jamie Johnson wrote:
 Thanks Ryan. So to be clear this is a bug then? I went into the
 cloud.js and changed the url used to access this information so that
 it would work, wasn't sure if it was kosher or not.

 Yes, it's a bug. My only installation with Zookeeper is a
SingleCore-Setup and there it's still working -.- Created
https://issues.apache.org/jira/browse/SOLR-3339 and already attached a
patch - could you confirm that it's changing more or less them same than
you did to bring back your local installation?

 Regards
 Stefan




Re: To truncate or not to truncate (group.truncate vs. facet)

2012-04-07 Thread danjfoley
I've been searching for a solution to my issue, and this seems to come
closest to it. But not exactly.

I am indexing clothing. Each article of clothing comes in many sizes and
colors, and can belong to any number of categories.

For example take the following: I add 6 documents to solr as follows:

product, color, size, category

shirt A, red, small, valentines day
shirt A, red, large, valentines day
shirt A, blue, small, valentines day
shirt A, blue, large, valentines day
shirt A, green, small, valentines day
shirt A, green, large, valentines day

I'd like my facet counts to return as follows:

color

red (1)
blue (1)
green (1)

size

small (1)
large (1)

category

valentines day (1)

But they come back like this:

color:
red (2)
blue (2)
green (2)

size:
small (2)
large (2)

category
valentines day (6)

I see the group.facet parameter in version 4.0 does exactly this. However
how can I make this happen now? There are all sorts of ecommerce systems out
there that facet exactly how i'm asking. i thought solr is supposed to be
the very best fastest search system, yet it doesn't seem to be able to facet
correct for items with multiple values?

Am i indexing my data wrong? 

how can i make this happen?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/To-truncate-or-not-to-truncate-group-truncate-vs-facet-tp3838797p3893744.html
Sent from the Solr - User mailing list archive at Nabble.com.


how to correctly facet clothing multiple sizes and colors?

2012-04-07 Thread danjfoley
I've been searching for a solution to my issue, and this seems to come
closest to it. But not exactly. 

I am indexing clothing. Each article of clothing comes in many sizes and
colors, and can belong to any number of categories. 

For example take the following: I add 6 documents to solr as follows: 

product, color, size, category 

shirt A, red, small, valentines day 
shirt A, red, large, valentines day 
shirt A, blue, small, valentines day 
shirt A, blue, large, valentines day 
shirt A, green, small, valentines day 
shirt A, green, large, valentines day 

I'd like my facet counts to return as follows: 

color 

red (1) 
blue (1) 
green (1) 

size 

small (1) 
large (1) 

category 

valentines day (1) 

But they come back like this: 

color: 
red (2) 
blue (2) 
green (2) 

size: 
small (2) 
large (2) 

category 
valentines day (6) 

I see the group.facet parameter in version 4.0 does exactly this. However
how can I make this happen now? There are all sorts of ecommerce systems out
there that facet exactly how i'm asking. i thought solr is supposed to be
the very best fastest search system, yet it doesn't seem to be able to facet
correct for items with multiple values? 

Am i indexing my data wrong? 

how can i make this happen?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-correctly-facet-clothing-multiple-sizes-and-colors-tp3893747p3893747.html
Sent from the Solr - User mailing list archive at Nabble.com.


upgrade 3.5 to 4.0

2012-04-07 Thread Dan Foley
I have download the nightly snapshot of v 4.0 and would like to install it
to my tomcat install of solr 3.5

can i simply overwrite the current files or is there a correct method for
doing so?

please advise.. thanks

-- 
Dan Foley
Owner - PHP Web Developer
___
Micamedia.com - PHP Web Development


Re: upgrade 3.5 to 4.0

2012-04-07 Thread Darren Govoni
In my opinion, its never a good idea to overwrite files of a previous
version with a new version. 

The easiest thing would be to just deploy the solr war file into tomcat
and let tomcat manage the webapp, files, etc.

On Sat, 2012-04-07 at 22:39 -0400, Dan Foley wrote:
 I have download the nightly snapshot of v 4.0 and would like to install it
 to my tomcat install of solr 3.5
 
 can i simply overwrite the current files or is there a correct method for
 doing so?
 
 please advise.. thanks
 




Python and solr - Should I give up on this?

2012-04-07 Thread Spadez
Hi.

Python is becoming an extremely popular language for web programming but the
official python-solr interface isn't included since 1.3 and a lot of the
ones on the web seem good but not production worthy yet, like mysolr.

Can solr be used with python in a production environment or will I be forced
to use something like PHP? That would be a shame.

James

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Python-and-solr-Should-I-give-up-on-this-tp3893842p3893842.html
Sent from the Solr - User mailing list archive at Nabble.com.