Re: Is it possible to use sub-fields or multivalued fields for boosting?

2011-05-04 Thread findbestopensource
Hello deniz, You could create a new field say FullName which is a of firstname and surname. Search on both the new field and location but boost up the new field query. Regards Aditya www.findbestopensource.com On Thu, May 5, 2011 at 9:21 AM, deniz wrote: > okay... let me make the situation

copyField

2011-05-04 Thread deniz
another question if i define different fields with different boosts and then copy them into another field and make a search by using this universal field, the boosting will be done? -- View this message in context: http://lucene.472066.n3.nabble.com/copyField-tp2902242p2902242.html Sent from the

Re: Field names with a period (.)

2011-05-04 Thread Gora Mohanty
On Thu, May 5, 2011 at 5:08 AM, Leonardo Souza wrote: > Hi guys, > > Can i have a field name with a period(.) ? > Like in *file.size* Cannot find now where this is documented, but from what I remember it is recommended to use only characters A-Z, a-z, 0-9, and underscore (_) in field names, and s

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Thank you so much for this gem, David! I still don't manage to build though: $ svn update At revision 1099684. $ mvn clean $ mvn -N -Pbootstrap install [INFO] [INFO] BUILD FAILURE [INFO] ---

OverlappingFileLockException when concurrent commits in solr

2011-05-04 Thread nitesh nandy
Hello, I'm using solr version 1.4.0 with tomcat 6. I've 2 solr instances running as 2 different web apps with separate data folders. My application requires frequent commits from multiple clients. I've noticed that when more than one client try to commit at the same time, these OverlappingFileLock

Is it possible to use sub-fields or multivalued fields for boosting?

2011-05-04 Thread deniz
okay... let me make the situation more clear... I am trying to create an universal field which includes information about users like firstname, surname, gender, location etc. When I enter something e.g London, I would like to match any users having 'London' in any field firstname, surname or locati

Re: Do boosts on values in multivalued fields still get consolidated?

2011-05-04 Thread Neil Hooey
If I have a document with: { id: 1, sentences: "hello world|5.0_goodbye|2.3_this is a sentence|2.8" } How would I get those payloads to take affect, on the tokens separated by "_"? How do you write a query to use those payloads? On Wed, May 4, 2011 at 22:26, Otis Gospodnetic wrote: > Hi Neil, >

Re: Do boosts on values in multivalued fields still get consolidated?

2011-05-04 Thread Otis Gospodnetic
Hi Neil, I think payloads is the way to go. Index-time boosting is not per term. Otis Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ - Original Message > From: Neil Hooey > To: solr-user@lucene.apache.org > Sent: W

Re: Formatted date/time in long field and javabinRW exception

2011-05-04 Thread Chris Hostetter
: That sounds quite reasonable indeed. But i don't understand why Solr doesn't : throw an exception when i actually index a string in a long fieldType while i : do remember getting some number formatting exception when pushing strings to : an integer fieldType. : : With the current set up i ca

Do boosts on values in multivalued fields still get consolidated?

2011-05-04 Thread Neil Hooey
Kapil Chhabra indicates on his blog that if you boost a value in a multivalued field during index time, the boosts are consolidated for every field, and the individual values are lost. Here's the link: http://blog.kapilchhabra.com/2008/01/solr-index-time-boost-facts-2 This post is from 2008-01-20

Re: why query chinese character with bracket become phrase query by default?

2011-05-04 Thread Ahmet Arslan
Please see Robert's two solutions (autoGeneratePhraseQueries or PositionFilter) http://search-lucene.com/m/imED32mqqyp1/ --- On Thu, 5/5/11, cyang2010 wrote: > From: cyang2010 > Subject: why query chinese character with bracket become phrase query by > default? > To: solr-user@lucene.apache.

Solr SpellcheckComponent issue

2011-05-04 Thread Siddharth Powar
Hi, I have been using using SolrSpellCheckcomponent. One of my requirements is that if a user types something like "add", solr would return "adidas". To get something like this, I used EdgeNGramsFilterFactory and applied it to the fields that I am indexing. So for adidas I will have something like

Re: How to preserve filelist / commit-points after master restart

2011-05-04 Thread Maduranga Kannangara
If it helps, these are filelist output before and after restarting master on a sample setup: Before restarting master: --- {indexSize=113.82 KB, indexPath=C:\JavaStuff\Solr\replication\solrhome\master\data\index, commits=[{indexVersion=1252480003511,generation=107,filelist

why query chinese character with bracket become phrase query by default?

2011-05-04 Thread cyang2010
Hi, In solr admin query full interface page, the following query with english become term query according to debug : title_en_US: (blood red) title_en_US: (blood red) title_en_US: (blood red) title_en_US:blood title_en_US:red title_en_US:blood title_en_US:red However, using the same syntax wi

Field names with a period (.)

2011-05-04 Thread Leonardo Souza
Hi guys, Can i have a field name with a period(.) ? Like in *file.size* thanks! [ ]'s Leonardo da S. Souza °v° Linux user #375225 /(_)\ http://counter.li.org/ ^ ^

RE: Solr Terms and Date field issues

2011-05-04 Thread Viswa S
Erik, I suspected the same, and setup a test instance to reproduce this. The date field I used is setup to capture indexing time, in other words the schema has a default value of "NOW". However, I have reproduced this issue with fields which do no have defaults too. On the second one, I did a

Re: How do you index multiple documents in JSON?

2011-05-04 Thread Neil Hooey
I found out how to do it, but you have to have duplicate "add" keys in a JSON object, which isn't easily serializable from a hash in a language. I reported an issue here: https://issues.apache.org/jira/browse/SOLR-2496 Please vote for it if you agree. On Wed, May 4, 2011 at 3:00 PM, Neil Hooey

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Smiley, David W.
Hi folks. What you're supposed to do is run: mvn -N -Pbootstrap install as the very first one-time only step. It copies several custom jar files into your local repository. From then on you can build like normally with maven. ~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterprise-

Re: Bulk update via filter query

2011-05-04 Thread Ahmet Arslan
> That won't work. External file fields > are currently only usable within > function queries, according to the Javadocs Yes you are right, only function queries. However he can dump ids of white-colored items to a text file in the following format: 12278=20.0 9984=20.0 issue a commit and filte

Re: Bulk update via filter query

2011-05-04 Thread Ahmet Arslan
> This could work. Are there > search/index performance drawbacks when using it? I am not using this feature in production, But it is the only way that i know to update a field without re-indexing whole document. If you can give us more details about use case, others can suggest different thing

mlt.qf with multiple fields

2011-05-04 Thread Luke Crouch
I'm trying to use MoreLikeThis handler and mlt.qf to boost certain fields: /solr/mlt?q=id:1&mlt.fl=body_title,text&mlt.qf=body_title^20.0+text^1.0&mlt.mintf=1 Looks like this has been an outstanding issue: http://lucene.472066.n3.nabble.com/Querying-multiple-fields-with-the-MoreLikeThis-handler-

JsonUpdateRequestHandler

2011-05-04 Thread Justine Mathews
Hi, When I have add the Json request handler as below for update in solrconfig.xml I am getting following error. Version : apache-solr-1.4.1. Could you please help... Error is shown below, Check your log files for more detailed information on what may be wrong. If you want solr to continue

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
I opened and built my needed projects in Netbeans, i.e.: Solr Core, Solr Search Server, Solrj, Lucene Core etc But with the given library you should go to the next step. Ludovic. - Jouve France. -- View this message in context: http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Neither do i..but i was doing mvn install.. what do you do? On Wed, May 4, 2011 at 9:11 PM, lboutros wrote: > I do not build this part, I don't need it. > > The lib was present in the branch_3x branch, but is not there anymore. > > You can download it here : > > > http://search.lucidimagination.

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
I do not build this part, I don't need it. The lib was present in the branch_3x branch, but is not there anymore. You can download it here : http://search.lucidimagination.com/search/out?u=http%3A%2F%2Fdownloads.osafoundation.org%2Fdb%2Fdb-4.7.25.jar You have to install it locally. Ludovic. 2

How do you index multiple documents in JSON?

2011-05-04 Thread Neil Hooey
How do you add multiple documents to Solr in JSON in a single request? In XML, I can just send this: 1 2 There is an example on this page: http://wiki.apache.org/solr/UpdateJSON But it doesn't demonstrate how to send more than one document. Thanks, - Neil

Re: howto add custom QueryParser stage or filter

2011-05-04 Thread Erick Erickson
Hmmm, I'll have to defer this to people who understand it better.. Siiiggghh... Erick On Wed, May 4, 2011 at 9:56 AM, Bernd Fehling wrote: > Hi Erik, > > Am 04.05.2011 14:30, schrieb Erick Erickson: >> >> Sure, all you have to do is derive from "the right class". See: >> http://wiki.apache.org/s

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
but it doesn't build. Now, I've checked out solr4 from the trunk and tried to build the maven project there, but it fails downloading berkleydb: BUILD FAILURE Total time: 1:07.367s Finished at: Wed May 04 20:33:29 CEST 2011

Re: Bulk update via filter query

2011-05-04 Thread simon
That won't work. External file fields are currently only usable within function queries, according to the Javadocs On Wed, May 4, 2011 at 12:16 PM, Rih wrote: > This could work. Are there search/index performance drawbacks when using > it? > > > On Mon, May 2, 2011 at 6:22 PM, Ahmet Arslan wrot

Re: Patch problems solr 1.4 - solr-2010

2011-05-04 Thread Shawn Heisey
On 5/4/2011 8:50 AM, Dyer, James wrote: I also should mention that solr-2010 is incorporated in Solr 3.1, so if you can upgrade you won't need a patch. Note, however, that you will still want to apply the fix in solr-2462 regardless of the version as this fix hasn't been committed anywhere.

Re: An error I can't manage to fix: java.lang.NoClassDefFoundError: org/apache/solr/search/QParserPlugin

2011-05-04 Thread Gavin Engel
I have a couple directives in my solrconfig.xml: Both of those should work, as far as I know. Those are pointing to 2 different folders, and both have a copy of my jar file in them. Yet, for some reason Solr doesn't see them. I'd love to know why. On Wed, May 4, 2011 at 5:13 AM, Erick Eric

Re: Bulk update via filter query

2011-05-04 Thread Rih
This could work. Are there search/index performance drawbacks when using it? On Mon, May 2, 2011 at 6:22 PM, Ahmet Arslan wrote: > > > Is there an efficient way to update multiple documents with common values > (e.g. color = white)? An example would be to mark all white-colored items > as > sol

RE: Patch problems solr 1.4 - solr-2010

2011-05-04 Thread Dyer, James
I also should mention that solr-2010 is incorporated in Solr 3.1, so if you can upgrade you won't need a patch. Note, however, that you will still want to apply the fix in solr-2462 regardless of the version as this fix hasn't been committed anywhere. James Dyer E-Commerce Systems Ingram Conte

RE: Patch problems solr 1.4 - solr-2010

2011-05-04 Thread Dyer, James
I just did a clean check out on the 1.4.1 branch and then applied the latest (10/22/2010) version of SOLR-2010_141.patch and it applied cleanly. I noticed from the listing you sent that any "new" files it removes trailing "cr"s from the text. Maybe its not doing this for you on files that nee

Re: howto add custom QueryParser stage or filter

2011-05-04 Thread Bernd Fehling
Hi Erik, Am 04.05.2011 14:30, schrieb Erick Erickson: Sure, all you have to do is derive from "the right class". See: http://wiki.apache.org/solr/SolrPlugins#QParserPlugin But this'll be tricky since you have to get at the proper colons in your example, and not remove the ones that delimit fiel

Re: Deprication warnings in Solr log

2011-05-04 Thread Ward Bekker
That attribute is not defined. Is it required? Regards, Ward On May 4, 2011, at 3:11 PM, lboutros wrote: > did you update this part in your solrconfig.xml ? > > LUCENE_31 > > Ludovic. > > > - > Jouve > France. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/De

Re: Deprication warnings in Solr log

2011-05-04 Thread lboutros
did you update this part in your solrconfig.xml ? LUCENE_31 Ludovic. - Jouve France. -- View this message in context: http://lucene.472066.n3.nabble.com/Deprication-warnings-in-Solr-log-tp2898163p2898749.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Deprication warnings in Solr log

2011-05-04 Thread Ward Bekker
Hi Erick, I've removed the old indexes. Rebuilded and I'm still getting the depreciation warnings. Regards, Ward On May 4, 2011, at 2:23 PM, Erick Erickson wrote: > What this is saying is that your index was created with a 2.x format. > That format > is supported in 3.x, but will NOT be supp

Re: SOLR 3.1 and JSON capabilities

2011-05-04 Thread Erick Erickson
Have you looked here? http://wiki.apache.org/solr/SolJSON If so, what parts are you having trouble with? Best Erick On Wed, May 4, 2011 at 8:11 AM, pgaur wrote: > I would like to get more details about JSON capabilites provided by the SOLR > 3.1 version. > > Does this really means referring to

Re: howto add custom QueryParser stage or filter

2011-05-04 Thread Erick Erickson
Sure, all you have to do is derive from "the right class". See: http://wiki.apache.org/solr/SolrPlugins#QParserPlugin But this'll be tricky since you have to get at the proper colons in your example, and not remove the ones that delimit fields Might it be easier to clean the search terms in t

Re: Deprication warnings in Solr log

2011-05-04 Thread Erick Erickson
What this is saying is that your index was created with a 2.x format. That format is supported in 3.x, but will NOT be supported in 4.x. So re-index your data with a 3.x Solr and this should go away... Best Erick On Wed, May 4, 2011 at 6:20 AM, Ward Bekker wrote: > Hello, > > I just upgraded to

Re: full-import called simultaneously for multiple core.

2011-05-04 Thread Erick Erickson
Hmmm, Can you provide more details? I know of no reason this isn't working... Best Erick On Wed, May 4, 2011 at 3:27 AM, Kannan wrote: > I could see required field missing exception for the few docs except that i > could not see any other exception. > > > -- > View this message in context: > ht

Re: Using lowercase as field type

2011-05-04 Thread Erick Erickson
OK, what is your proof that they're not overwriting? Because the deleted documents are still in the index, and looking at, say, terms will show them until an optimize is done. The deleted copies won't be shown in search results etc, but the underlying data is still in the index. If that's not the

Re: Solr Terms and Date field issues

2011-05-04 Thread Erick Erickson
Hmmm, this *looks* like you've changed your schema without re-indexing all your data so you're getting old (string?) values in that field, but that's just a guess. If this is really happening on a clean index it's a problem. I'm also going to guess that you're not really deleting the documents you

Re: An error I can't manage to fix: java.lang.NoClassDefFoundError: org/apache/solr/search/QParserPlugin

2011-05-04 Thread Erick Erickson
This is pretty fragile, the Jetty work directories come and go. I predict it will keep disappearing and/or you'll go through this same hassle next time you re-install or move to a new machine or... You *should* be able to just remove that directory entirely and still start w/o copying the jar. A

SOLR 3.1 and JSON capabilities

2011-05-04 Thread pgaur
I would like to get more details about JSON capabilites provided by the SOLR 3.1 version. Does this really means referring to the schema.xml I could just hit a JSON passing the field values corresponding to the fields of schema.xml and the document get indexed to SOLR? Any help would be highly ap

Re: Replicaiton Fails with Unreachable error when master host is responding.

2011-05-04 Thread Erick Erickson
thanks for bringing closure here. Problems like this drive me crazy, especially when the solution is really simple, but hard to figure out! Erick On Wed, May 4, 2011 at 1:14 AM, Jed Glazner wrote: > So it turns out that it's the host names.  According the DNS RFC underscores > are not valid in h

Re: How to take differential backup of Solr Index

2011-05-04 Thread Erick Erickson
I'm not sure what you're asking here, can you clarify? A search machine that replicates from an indexer is just a Solr server, search requests are handled like any other server. If you're asking about how to configure replication, see: http://wiki.apache.org/solr/SolrReplication#Slave Best Erick

Patch problems solr 1.4 - solr-2010

2011-05-04 Thread roySolr
Hello, I want to patch my solr installation(1.4.1) with solr-2010.(https://issues.apache.org/jira/browse/SOLR-2010) I need this feature: Only return collations that are guaranteed to result in hits if re-queried Now i try the following code: wget https://issues.apache.org/jira/secure/attachmen

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
It worked after checking out the dev-tools folder. Thank you! On Wed, May 4, 2011 at 1:20 PM, lboutros wrote: > >description="Copy Maven POMs from dev-tools/maven/ to their target > locations"> > > > > > > > > > -- Regards, K. Gabriele

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
ok, this is part of my build.xml (from the svn repository) : Ludovic. - Jouve France. -- View this message in context: http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898339.html Sent from

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
On Wed, May 4, 2011 at 1:11 PM, lboutros wrote: > oups, > > sorry, this was not the target I used (this one should work too, but...), > the one I used is get-maven-poms. That will just create pom files and copy > them to their right target locations. > I don't have "get-maven-poms" target in my

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
oups, sorry, this was not the target I used (this one should work too, but...), the one I used is get-maven-poms. That will just create pom files and copy them to their right target locations. I'm using netbeans and I'm using the plugin "Automatic Projects" to do everything inside the IDE. Which

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
generate-maven-artifacts: [mkdir] Created dir: /Users/simpatico/SOLR_HOME/build/maven [mkdir] Created dir: /Users/simpatico/SOLR_HOME/dist/maven [copy] Copying 1 file to /Users/simpatico/SOLR_HOME/build/maven/src/maven [artifact:install-provider] Installing provider: org.apache.maven.wago

howto add custom QueryParser stage or filter

2011-05-04 Thread Bernd Fehling
Dear list, is it possible to add a custom QueryParser stage to solr or add a custom query filter? My aim is to filter out reserved characters from query terms, like ":" within a query term. query=text:(:foo AND bar) query=text:(foo AND b:ar) Regards Bernd

Re: stemming for English

2011-05-04 Thread Dmitry Kan
Hi Robert, Have you seen *any* growth? We have once added a copy field for supporting leading wildcard and got our index doubled (or something close). On Tue, May 3, 2011 at 9:24 PM, Robert Petersen wrote: > From what I have seen, adding a second field with the same terms as the > first does *

Deprication warnings in Solr log

2011-05-04 Thread Ward Bekker
Hello, I just upgraded to 3.1. After this the solr.log is showing deprecation warnings (see below). What can I do about this? Regards, Ward - WARNING: WhitespaceTokenizerFactory is using deprecated LUCENE_24 emulation. You should at some point declare and reindex to at least 3.0, beca

Re: UIMA analysisEngine path

2011-05-04 Thread Tommaso Teofili
Hello Barry, the main AnalysisEngine descriptor defined inside the element should be inside one of the jars imported with the elements. At the moment it cannot be taken from expanded directories but it should be easy to do it (and indeed useful) modifying the OverridingParamsAEProvider class [1]

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
In the ant script there is a target to generate maven's artifacts. After that, you will be able to open the project as a standard maven project. Ludovic. 2011/5/4 Gabriele Kahlout [via Lucene] < ml-node+2898068-621882422-383...@n3.nabble.com> > Hello, > > I'm trying to modify Solr and I think d

Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Hello, I'm trying to modify Solr and I think debugging will be very useful to understand what's going on. Hence I'd like to use an IDE (NetBeans) which automatically supports Maven projects. I see under src/maven that there are templates but I'm not sure how to use them to mavenize the build/proje

Re: full-import called simultaneously for multiple core.

2011-05-04 Thread Kannan
I could see required field missing exception for the few docs except that i could not see any other exception. -- View this message in context: http://lucene.472066.n3.nabble.com/full-import-called-simultaneously-for-multiple-core-tp2894606p2897746.html Sent from the Solr - User mailing list ar