Re: Debug Solr in Netbeans..

2009-06-16 Thread noor
Yes Mark Miller, I changed the Connector specification in attach-debugger dialog, from SocketAttach TO socketListen. Now i got the netbeans debugger-console output as, Listening on 5005 But, nothing will be display after that, but the progress shows, attaching debugger What is the problem

Re: Custom Request handler Error:

2009-06-16 Thread noor
how to create a custom update handler, to update my fields... ? Also, how to make the update, through url, i mean, http://localhost:8983/solr/update/../ like that... ??? noor wrote: Yes, i changed "custom" into "/custom", now it calls my class. But, in browser, It shows Null RequestHandl

Re: fq vs. q

2009-06-16 Thread Fergus McMenemie
>Fergus McMenemie schrieb: > >> The article could explain the difference between fq= and >> facet.query= and when you should use one in preference to >> the other. > >My understanding is that while these query modifiers rely on the >same implementation (cached filters) to boost performa

How to allow case insensitive in Solr

2009-06-16 Thread chem leakhina
Hi everyone,How can I allow Solr to search for all cases like upper case or lower case in Solr? Best regards, Leakhina

Re: How to allow case insensitive in Solr

2009-06-16 Thread Markus Jelsma - Buyways B.V.
hi, You can create a field with class="Solr.TextField" which needs a LowerCaseFilterFactory in the index and query analyzers e.g.

Re: How to allow case insensitive in Solr

2009-06-16 Thread chem leakhina
So when I use LowerCaseFilterFactory, I can search with upper case and lower case right? On Tue, Jun 16, 2009 at 3:44 PM, Markus Jelsma - Buyways B.V. < mar...@buyways.nl> wrote: > hi, > > > You can create a field with class="Solr.TextField" which needs a > LowerCaseFilterFactory in the index and

Re: How to allow case insensitive in Solr

2009-06-16 Thread Markus Jelsma - Buyways B.V.
Indeed, as it will LowerCase all tokens during indextime and querytime so the term LowerCaseFilterFactory will (aside from some tokenizer) enter the index as lowercasefilterfactory. Then, any searchterm will also be lowercased so the searchterm LOWERCASEFILTERFACTORY will match because on querytime

Re: Custom Request handler Error:

2009-06-16 Thread Noble Paul നോബിള്‍ नोब्ळ्
please take a look at one of the updatehandlers which are already there XmlUpdateRequestHandler CSVRequestHandler BinaryUpdateRequestHandler On Tue, Jun 16, 2009 at 1:34 PM, noor wrote: > how to create a custom update handler, to update my fields... ? > Also, how to make the update, through url, i

Re: Count of facet count

2009-06-16 Thread Karsten F.
Hi, Some questions about an integer with numFacetFound for facets in solr: Our application "tecfinder" has a faceted browsing with paging for each facet (see "Fachgebiete" in http://tecfinder.fiz-technik.de/tecfinder/faces/facelets/search/search.jsp?query=Laser ). Currently I am integrating sol

Re: Few Queries regarding indexes in Solr

2009-06-16 Thread Otis Gospodnetic
Hello, Answers inlined. - Original Message > 1. Is it possible to query from another index folder (say index1) in > solr? You don't really query *from* an index, so I'm not sure what exactly you mean. However, you can query Solr remotely, if that's what you mean, for exampl

Integration of Solr with Terracotta

2009-06-16 Thread bhushan_mahale
Hi, I am looking for some way to integrate Solr with Terracotta. There is already an issue logged in Solr JIRA: http://jira.terracotta.org/jira/browse/CDV-399 But it is logged almost 2 years back. Is the integration with Terracotta possible in the latest release (1.3.0)? Thanks - Bhushan DISC

Re: Problem with Query Parser?

2009-06-16 Thread Avlesh Singh
Can someone explain this? +myField:"\*" +city:Mumbai gives me all results for +city:Mumbai myField is a regular text field and "*" is not a stopword. Cheers Avlesh On Tue, Jun 16, 2009 at 10:26 AM, Yonik Seeley wrote: > On Tue, Jun 16, 2009 at 12:28 AM, Avlesh Singh wrote: > >> > >> Probably th

Re: Few Queries regarding indexes in Solr

2009-06-16 Thread Michael Ludwig
Rakhi Khatwani schrieb: 1. Is it possible to query from another index folder (say index1) in solr? I think you're looking for the multi-core feature. http://wiki.apache.org/solr/MultipleIndexes http://wiki.apache.org/solr/CoreAdmin 2. Is it possible to query 2 indexes(folders index1 and ind

Re: Integration of Solr with Terracotta

2009-06-16 Thread Yonik Seeley
Solr (1.4) now has a DirectoryFactory, so it would be much easier to try this out. -Yonik http://www.lucidimagination.com On Tue, Jun 16, 2009 at 8:29 AM, bhushan_mahale wrote: > Hi, > > I am looking for some way to integrate Solr with Terracotta. > > There is already an issue logged in Solr JIR

Re: Problem with Query Parser?

2009-06-16 Thread Yonik Seeley
On Tue, Jun 16, 2009 at 8:33 AM, Avlesh Singh wrote: > Can someone explain this? > +myField:"\*" +city:Mumbai gives me all results for +city:Mumbai > > myField is a regular text field and "*" is not a stopword. * and other non alphanumerics are probably being dropped by WordDelimiterFilter. -Yoni

Re: Problem with Query Parser?

2009-06-16 Thread Avlesh Singh
Thanks Yonik! Cheers Avlesh On Tue, Jun 16, 2009 at 7:25 PM, Yonik Seeley wrote: > On Tue, Jun 16, 2009 at 8:33 AM, Avlesh Singh wrote: > > Can someone explain this? > > +myField:"\*" +city:Mumbai gives me all results for +city:Mumbai > > > > myField is a regular text field and "*" is not a stop

RE: Integration of Solr with Terracotta

2009-06-16 Thread bhushan_mahale
Hey Yonik, Thanks for the reply. Can I use something like Compass for the integration? (http://www.terracotta.org/web/display/orgsite/Lucene+Integration) The idea is to change Solr code at the places where it uses lucene.store.directory. Use the TerracottaDirectory (provided by Compass) inste

Re: Integration of Solr with Terracotta

2009-06-16 Thread Yonik Seeley
On Tue, Jun 16, 2009 at 10:17 AM, bhushan_mahale wrote: > The idea is to change Solr code at the places where it uses > lucene.store.directory. > Use the TerracottaDirectory (provided by Compass) instead. I thought Teracotta could work directly on RAMDirectory somehow... but trying out the implem

Query parameter encode issue

2009-06-16 Thread Radha C.
Hello list, I am having the following query, q=+text:test +site_id:(4 ) +publishDate:[2008-05-01T00\:00\:00Z TO 2009-06-30T00\:00\:00Z] If I try this query in the browser directly , it is working fine and the url is encoded automatically in the browser when I enter as follows http://localhost

Searching across multivalued fields

2009-06-16 Thread MilkDud
I'm trying to prevent a search from going across multiple values in a multivalued field and am running into an issue. From what I've read, the standard way to do this is with a positionIncrementGap that is larger than the ps value. However, I can't make this a phrase query because there is anoth

moreLikeThis fl

2009-06-16 Thread Matt Mitchell
I'd like to have a MLT query return similar docs, but the fl for those mlt docs should be different from the main fl. For example, the main fl is "*, score" -- but I only want the title and id in my MLT results. Is this possible? Matt

Re: Query parameter encode issue

2009-06-16 Thread Avlesh Singh
> > qryString = "+text:test +site_id:(4 ) +publishDate:[2008-05-01T00\:00\:00Z > TO 2009-06-30T00\:00\:00Z]"; > URLEncoder.encode(qryString, "UTF-8"); > You don't have to encode the complete query string parameter. You just need encode the values for individual query paramters. So it should be mor

Range queries

2009-06-16 Thread gwk
Hi, When doing range queries it seems the query is either x:[5 TO 8] which means 5 <= x <= 8 or x:{5 TO 8} which means 5 < x < 8. But how do you get one half exclusive, the other inclusive for double fields the following: 5 <= x < 8? Is this possible? Regards, gwk

RE: Query parameter encode issue

2009-06-16 Thread Radha C.
Thanks for your reply.. If that is the case, I need to do as follows, "+text:" + URLEncoder.encode("test", "UTF-8") +URLEncoder.encode(" ", "UTF-8")+"+site_id"+URLEncoder.encode(xx, "UTF-8") Do I need to encode the space between two search field also? It is difficult for me to do lik

MoreLikeThis and TermVectors

2009-06-16 Thread Marc Sturlese
Hey there, As I understood documentation, to have TermVectors will help to MoreLikeThis in performance side but the similitude of the results will be the same. Am I correct? Thanks in advance -- View this message in context: http://www.nabble.com/MoreLikeThis-and-TermVectors-tp24057914p24057914.

Uncommitted documents coutn with autocommit enabled?

2009-06-16 Thread Ingo Renner
Hi all, is there a way to find out how many documents are "pending" when having autocommit enabled? best Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2

Re: MoreLikeThis and TermVectors

2009-06-16 Thread Grant Ingersoll
They should be, assuming the Analysis process creates the same tokens with the same frequency as was created when the Term Vectors were created. On Jun 16, 2009, at 12:24 PM, Marc Sturlese wrote: Hey there, As I understood documentation, to have TermVectors will help to MoreLikeThis in p

Re: Joins or subselects in solr

2009-06-16 Thread Nasseam Elkarra
Thanks for the advice. Glad you like the site! Yes, we are using the new multi-select support to do this. At first, we wrote our own client- side solution to allow for multi-select which was super complex but moved to the built-in solr support as soon as we found it. Excellent feature! -Na

Re: Range queries

2009-06-16 Thread Otis Gospodnetic
Hi, I think the square brackets/curly braces need to be balanced, so this is currently not doable with existing query parsers. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: gwk > To: solr-user@lucene.apache.org > Sent: Tuesday, June 1

Re: Uncommitted documents coutn with autocommit enabled?

2009-06-16 Thread Otis Gospodnetic
Ingo, I believe that's still visible on the Statistics page of the Solr Admin UI. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Ingo Renner > To: solr-user@lucene.apache.org > Sent: Tuesday, June 16, 2009 12:33:05 PM > Subject: Uncommi

Re: moreLikeThis fl

2009-06-16 Thread Otis Gospodnetic
Matt, Maybe I'm missing something, but can't you use mlt.fl in the URL? Please see http://wiki.apache.org/solr/MoreLikeThis#head-6460069f297626f2a982f1e22ec5d1519c456b2c Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Matt Mitchell > To:

Re: Replication problems on 1.4

2009-06-16 Thread Phil Hagelberg
Phil Hagelberg writes: > Noble Paul നോബിള്‍ नोब्ळ् writes: > >> if you removed the files while the slave is running , then the slave >> will not know that you removed the files (assuming it is a *nix box) >> and it will serve the search requests. But if you restart the slave , >> it should have

Re: Query Filter fq with OR operator

2009-06-16 Thread brian519
This feature is very important to me .. should I post something on the dev forum? Not sure what the proper protocol is for adding a feature to the roadmap Thanks, Brian. -- View this message in context: http://www.nabble.com/Query-Filter-fq-with-OR-operator-tp23895837p24059181.html Sent from t

Re: Few Queries regarding indexes in Solr

2009-06-16 Thread Otis Gospodnetic
Regarding that 3rd answer below: Yes, that's what most people do, though nothing prevents the indexing client from sending the same doc to multiple shards. In some scenarios that's exactly what you want to do. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original

Luke / get doc count for each term

2009-06-16 Thread Ryan McKinley
Hi- I'm trying to use the LukeRequestHandler with an index of ~9 million docs. I know that counting the top / distinct terms for each field is expensive and can take a LONG time to return. Is there a faster way to check the number of documents for each field? Currently this gets the doc count f

Re: Query Filter fq with OR operator

2009-06-16 Thread Otis Gospodnetic
Brian, Opening a JIRA issue if it doesn't already exist is the best way. If you can provide a patch, even better! Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: brian519 > To: solr-user@lucene.apache.org > Sent: Tuesday, June 16, 2009

Re: Query Filter fq with OR operator

2009-06-16 Thread brian519
Otis Gospodnetic wrote: > > > Brian, > > Opening a JIRA issue if it doesn't already exist is the best way. If you > can provide a patch, even better! > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > Thanks Otis! I've created a JIRA > https://issues.apache.or

Problem getting Solr statistics

2009-06-16 Thread Development Team
Hi all, I am stumped trying to get statistics from the Solr server. It seems that every time I get the correct SolrInfoMBean, when I look up the proper value (by name) in the NamedList, I get the exact same number back each time. For example, upon start-up the server reports that "2" queries h

Using Lucene Filter with SolrIndexSearcher

2009-06-16 Thread Aleksandar Bradic
Hi all, Any ideas on how to use custom Lucene Filter (lucene.search.Filter) in conjuction with SolrIndexSearcher ? The case is writing custom Filter performing arbitrary records selection and AND-ing it to the existing filters passed in the query. However, the ResponseBuilder filters are

Re: Using Lucene Filter with SolrIndexSearcher

2009-06-16 Thread Yonik Seeley
On Tue, Jun 16, 2009 at 3:31 PM, Aleksandar Bradic wrote: > Any ideas on how to use custom Lucene Filter (lucene.search.Filter) in > conjuction with SolrIndexSearcher ? You can wrap the original query with a FilteredQuery class, or create a DocSet from the Filter via SolrIndexSearcher.convertFilte

Re: Range queries

2009-06-16 Thread Peter Keegan
How about this: x:[5 TO 8] AND x:{0 TO 8} On Tue, Jun 16, 2009 at 1:16 PM, Otis Gospodnetic < otis_gospodne...@yahoo.com> wrote: > > Hi, > > I think the square brackets/curly braces need to be balanced, so this is > currently not doable with existing query parsers. > > Otis > -- > Sematext -- ht

Re: Luke / get doc count for each term

2009-06-16 Thread Yonik Seeley
doc count for each term is stored directly in the index - with the big caveat that it doesn't take deleted docs into account. That addresses the "get doc count for each term". "get doc count for each field" is a different question... see below. On Tue, Jun 16, 2009 at 1:57 PM, Ryan McKinley wrot

Re: Luke / get doc count for each term

2009-06-16 Thread Grant Ingersoll
On Jun 16, 2009, at 1:57 PM, Ryan McKinley wrote: Is there a faster way to check the number of documents for each field? Currently this gets the doc count for each term: In the past, I've created a field that contains the names of the Fields present on the document. Then, simply facet on

DisMaxRequestHandler usage

2009-06-16 Thread siping liu
Hi, I have this standard query: q=(field1:hello OR field2:hello) AND (field3:world) Can I use dismax handler for this (applying the same search term on field1 and field2, but keep field3 with something separate)? If it can be done, what's the advantage of doing it this way over using the s

Re: Using Lucene Filter with SolrIndexSearcher

2009-06-16 Thread Aleksandar Bradic
Ah, right. FilteredQuery works just great Thanks, Yonik Best, .Alek On Jun 16, 2009, at 9:45 PM, Yonik Seeley wrote: On Tue, Jun 16, 2009 at 3:31 PM, Aleksandar Bradic wrote: Any ideas on how to use custom Lucene Filter (lucene.search.Filter) in conjuction with SolrIndexSearcher ? You c

NPE while sorting

2009-06-16 Thread Nirkhe, Chandra
Hi, Solr is throwing Null pointer exception when soring on a field. http://localhost:9080/solr/select?version=2.2&q=*:*&qt=geo&lat=41.883784 &long=-87.637668&radius=25&rows=100&sort=geo_distance%20top Using 16-June build. Any pointers ?? HTTP Status 500 - null java.lang.NullPointerException a

Re: NPE while sorting

2009-06-16 Thread Yonik Seeley
Looks like this is the local-solr patch, which isn't part of Solr yet? -Yonik http://www.lucidimagination.com On Tue, Jun 16, 2009 at 6:15 PM, Nirkhe, Chandra wrote: > Hi, > Solr is throwing Null pointer exception when soring on a field. > > > http://localhost:9080/solr/select?version=2.2&q=*:*&q

Re: Luke / get doc count for each term

2009-06-16 Thread Ryan McKinley
On Jun 16, 2009, at 5:21 PM, Grant Ingersoll wrote: On Jun 16, 2009, at 1:57 PM, Ryan McKinley wrote: Is there a faster way to check the number of documents for each field? Currently this gets the doc count for each term: In the past, I've created a field that contains the names of th

Re: localsolr sort

2009-06-16 Thread pjaol
Haven't tried the 14th build, but the latest stable version is available on http://www.nsshutdown.com/solr-example.tgz Built last week -- View this message in context: http://www.nabble.com/localsolr-sort-tp24040799p24065745.html Sent from the Solr - User mailing list archive at Nabble.com.

what date format to pass for search in Solr?

2009-06-16 Thread chem leakhina
Hi Does anyone know what date format pass to search in Solr? Could you give me any examples for search with Date in solr? Regards, Leahina

Re: Range queries

2009-06-16 Thread Avlesh Singh
And how about this - x:{5 TO 8} AND x:5 Cheers Avlesh On Wed, Jun 17, 2009 at 1:57 AM, Peter Keegan wrote: > How about this: x:[5 TO 8] AND x:{0 TO 8} > > On Tue, Jun 16, 2009 at 1:16 PM, Otis Gospodnetic < > otis_gospodne...@yahoo.com> wrote: > > > > > Hi, > > > > I think the square brackets/cu

Re: Range queries

2009-06-16 Thread Avlesh Singh
Really sorry, this is what I meant: x:{5 TO 8} OR x:5 Cheers Avlesh On Wed, Jun 17, 2009 at 9:36 AM, Avlesh Singh wrote: > And how about this - x:{5 TO 8} AND x:5 > > Cheers > Avlesh > > > On Wed, Jun 17, 2009 at 1:57 AM, Peter Keegan wrote: > >> How about this: x:[5 TO 8] AND x:{0 TO 8} >> >>