Re: Solr highlighting isn't work!

2011-11-22 Thread VladislavLysov
Thank you for request! I'm did next request and all is ok https://localhost:8443/solr/alfresco/select?wt=standard&q=TYPE:%22{http://www.test.com/test/test/model/content/0.1}field%22&indent=on&hl=true&hl.fl=TYPE https://localhost:8443/solr/alfresco/select?wt=standard&q=TYPE:%22{http://www.test.com/

Solr Search for misspelled search term

2011-11-22 Thread meghana
Hi all, I need to find a way by which solr check and return for results for misspelled search term. Do anybody have any idea? Thank You!! Meghana -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Search-for-misspelled-search-term-tp3529961p3529961.html Sent from the Sol

RE: Solr Performance/Architecture

2011-11-22 Thread Husain, Yavar
Hi Shawn That was so great of you to explain the architecture in such a detail. I enjoyed reading it multiple times. I have a question here: You mentioned that we can use crc32(DocumentId)% NumServers. Now actually I am using that in my data-config.xml in the sql query itself, something like:

Re: Can files be faceted based on their size ?

2011-11-22 Thread neuron005
Thanks for replying I tried using "Trie" types for faceting solr but that did not solve the problem. If I use Trie types(for e.g. I used tlong)...it shows "schema mismatch error" as in FileListEntityProcessor api , fileSize has been defined of type string. That means we can not apply facet.range on

Re: Integrating Surround Query Parser

2011-11-22 Thread Rahul Mehta
This what i tried: - Gone to the solr 3.1 directory which is downloaded from here. http://www.trieuvan.com/apache//lucene/solr/3.1.0/apache-solr-3.1.0.tgz - wget https://issues.apache.org/jira/secure/attachment/12493167/SOLR-2703.patch - run the : patch -p0 -i SOLR-2703.patch --d

Re: FunctionQuery score=0

2011-11-22 Thread John
Hi Hoss, Thanks for the detailed response. My XY problem is: 1) I am trying to search for a complex query: q={!type=edismax qf="abstract^0.02 title^0.08 categorysearch^0.05" boost='eqsim(alltokens,"xyz")' v='+tokens5:"xyz" '} Which answers my query needs. BUT, my boost function actually changes

Re: Integrating Surround Query Parser

2011-11-22 Thread Rahul Mehta
How to apply this patch https://issues.apache.org/jira/browse/SOLR-2703 with solr 3.1 to install surround as plugin? On Tue, Nov 22, 2011 at 7:34 PM, Erik Hatcher wrote: > The "surround" query parser is fully wired into Solr trunk/4.0, if that > helps. See http://wiki.apache.org/solr/SurroundQue

RE: If search matches index in the middle of filter chain, will result return?

2011-11-22 Thread Ellery Leung
Thanks Shawn. So to recap: - Every "match" must be found after entire chain, not in the middle of the chain. - Suggested: and chain should be the same. In my situation, if I make both of them the same, the result may be misleading because it will also match other records that have the same par

Re: Solr real time update

2011-11-22 Thread Nagendra Nagarajayya
Spark: Solr with RankingAlgorithm is not a plugin but a change of search library from Lucene to RankingAlgorithm. Here is more info on the changes you will need to make to your solrconfig.xml: http://solr-ra.tgels.org/wiki/en/Near_Real_Time_Search Regards, - Nagendra Nagrajayya http://solr-

Re: If search matches index in the middle of filter chain, will result return?

2011-11-22 Thread Shawn Heisey
On 11/22/2011 7:54 PM, Ellery Leung wrote: I am searching for an email called: off...@officeofficeoffice.com. If I search any text under 20 characters, result will be returned. But when I search the whole string: off...@officeofficeoffice.com, no result return. As you all see in the schema in

Separate ACL and document index

2011-11-22 Thread Floyd Wu
Hi there, Is it possible to separate ACL index and document index and achieve to search by user role in SOLR? Currently my implementation is to index ACL with document, but the document itself change frequently. I have to perform rebuild index every time when ACL change. It's heavy for whole syst

If search matches index in the middle of filter chain, will result return?

2011-11-22 Thread Ellery Leung
Hi all I am using Solr 3.4 with Win7 and Jetty. When I do a search on a field, according to the "Analysis" from Solr, the search string matches the index in the middle of the chain. Here is the schema:

Re: Solr real time update

2011-11-22 Thread yu shen
Hi Nagarajayya, Thanks for your information. Do I need to change any configuration of my current solr server to integrate your plugin? Spark 2011/11/22 Nagendra Nagarajayya > Yu: > > To get Near Real Time update in Solr 1.4.1 you will need to use Solr 1.4.1 > with RankingAlgorithm. This allow

Re: Solr highlighting isn't work!

2011-11-22 Thread Koji Sekiguchi
(11/11/22 22:30), VladislavLysov wrote: Hello!!! I have a trouble with Solr highlighting. I have any document with next fields- "TYPE", "DBID" and others. When i do next request - https://localhost:8443/solr/myCore/afts?wt=standard&q=TYPE: https://localhost:8443/solr/myCore/afts?wt=standard&q=

Re: Faceting is not Using Field Value Cache . . ?

2011-11-22 Thread Samuel García Martínez
AFAIK, FieldValueCache is only used for faceting on tokenized fields. Maybe, are you getting confused with FieldCache ( http://lucene.apache.org/java/3_0_2/api/all/org/apache/lucene/search/FieldCache.html)? This is used for common facets (using facet.method=fc and not tokenized fields). This makes

Re: spellcheck in dismax

2011-11-22 Thread alxsss
It seem you forget this true -Original Message- From: Ruixiang Zhang To: solr-user Sent: Tue, Nov 22, 2011 11:54 am Subject: spellcheck in dismax I put the following into dismax requestHandler, but no suggestion field is returned. true false 1

spellcheck in dismax

2011-11-22 Thread Ruixiang Zhang
I put the following into dismax requestHandler, but no suggestion field is returned. true false 1 spellcheck But everything works if I put it as a separate requestHandler. Did I miss something? Thanks Richard

Re: FunctionQuery score=0

2011-11-22 Thread Chris Hostetter
: > q={!frange l=0 incl=false}query({!type=edismax qf="abstract^0.02 : > title^0.08 categorysearch^0.05" boost='eqsim(alltokens,"xyz")' : > v='+tokens5:"xyz" '}) : > : > : > With the above query, I am getting only the results that I want, the ones : > whose score after my FucntionQuery are above 0

Re: how to make effective search with fq and q params

2011-11-22 Thread Erik Hatcher
I think you're using dismax, not edismax. edismax will take q=*:* just fine as it handles all Lucene syntax queries also. dismax does not. So, if you're using dismax and there is no actual query (but you want to get facets), you set q.alt=*:* and omit q - that's entirely by design. If there's

Highlight with multi word synonyms

2011-11-22 Thread Brian Gerby
I'm trying to use multi-word synonyms. For example in my synonyms file I have nhl, national hockey league. If I do this index only, a search for nhl returns a correct match, but highlights the first word only, national. Ideally, it would highlight national hockey league or not highlight at all.

Re: To push the terms.limit parameter from the master core to all the shard cores.

2011-11-22 Thread mechravi25
Hi Mark, Thanks for your suggestion. My Exact scenario is that, I have one master core which has many underlying shards core(Disturbed architecture). I want the terms.limit should be defaulted to 10 in the underlying shards cores. When i hit the master core, it will in-turn hit the underlying s

Re: Problems with AutoSuggest feature(Terms Components)

2011-11-22 Thread mechravi25
Hi Erick, Thanks for your reply. I would know all the options that can be given under the defaults section and how they can be overridden. is there any documentation available in solr forum. Cos we tried searching and wasn't able to succeed. My Exact scenario is that, I have one master core whic

Faceting is not Using Field Value Cache . . ?

2011-11-22 Thread CRB
Seeing something odd going on with faceting . . . we execute facets with every query and yet the fieldValueCache is not being used: name: fieldValueCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=1, initial

Re: FunctionQuery score=0

2011-11-22 Thread John
Can this be fixed somehow? I also need the real score. On Sun, Nov 20, 2011 at 10:44 AM, John wrote: > After playing some more with this I managed to get what I want, almost. > > My query now looks like: > > q={!frange l=0 incl=false}query({!type=edismax qf="abstract^0.02 > title^0.08 categoryse

Re : AW: How to select all docs of 'today' ?

2011-11-22 Thread Danicela nutch
Thanks it works. All this is based on the fact that NOW/DAY means the beginning of the day. - Message d'origine - De : sebastian.pet...@tib.uni-hannover.de Envoyés : 22.11.11 16:46 À : solr-user@lucene.apache.org Objet : AW: How to select all docs of 'today' ? Hi, "fetch-time:[NOW/DAY

Re: how to make effective search with fq and q params

2011-11-22 Thread Jeff Schmidt
Hi Erik: It's not in the SolrJ library, but rather my use of it: In my application code: protected static final String SOLR_ALL_DOCS_QUERY = "*:*"; /* * If no search terms provided, then return all neighbors. * Results are to be returned in neighbor symbol alphabetical order. */ if (search

NullPointerException with distributed facets

2011-11-22 Thread Phil Hoy
Hi, When doing a distributed query in solr 4.0 (4.0.0.2011.06.25.15.36.22) with facet.missing=true and facet.limit=20 I get a NullPointerException. By increasing the facet limit to 200 or setting facet missing to false it seems to fix it. The shards both contain the field but one shard always h

weird issue with solr and CentOS 5.7

2011-11-22 Thread Boris Quiroz
Hi all, I'm facing a real weird issue here with solr (lucene 3.3) and CentOS 5.7. I've two servers, one running CentOS 5.5 and the other running CentOS 5.7. Both servers has the same solr, java and tomcat versions, the only difference between them is OS version. I added a custom field to schema.xm

Re: Autocomplete(terms) performance problem

2011-11-22 Thread solr-ra
You should try out the autocomplete component using Solr with RankingAlgorithm. The performance is less than 3ms for a 1 million Wikipedia titles index with very low deviation. You can get more information about the performance with different indexes of size 3k, 390k, 1m, 10m docs from here: http

AW: How to select all docs of 'today' ?

2011-11-22 Thread Peters, Sebastian
Hi, "fetch-time:[NOW/DAY TO NOW]" should do it. Best Sebastian -Ursprüngliche Nachricht- Von: Danicela nutch [mailto:danicela-nu...@mail.com] Gesendet: Dienstag, 22. November 2011 16:08 An: solr-user@lucene.apache.org Betreff: How to select all docs of 'today' ? Hi, I have a fetch-t

Re: wild card search and lower-casing

2011-11-22 Thread Dmitry Kan
Thanks, Erick. I was in fact reading the patch (the one attached as a file to the aforementioned jira) you updated sometime yesterday. I'll watch the issue, but as said the change of a hard-coded boolean to its opposite worked just fine for me. Best, Dmitry On 11/22/11, Erick Erickson wrote: >

Re: wild card search and lower-casing

2011-11-22 Thread Erick Erickson
No, no, no That's something buried in Lucene, it has nothing to do with the patch! The patch has NOT yet been applied to any released code. You could pull the patch from the JIRA and apply it to trunk locally if you wanted. But there's no patch for 3.x, I'll probably put that up over the holid

Re: Solr real time update

2011-11-22 Thread Nagendra Nagarajayya
Yu: To get Near Real Time update in Solr 1.4.1 you will need to use Solr 1.4.1 with RankingAlgorithm. This allows you to update documents in near real time. You can download and give this a try from here: http://solr-ra.tgels.org/ Regards, - Nagendra Nagarajayya http://solr-ra.tgels.org/ ht

How to select all docs of 'today' ?

2011-11-22 Thread Danicela nutch
Hi, I have a fetch-time (date) field to know when the documents were fetched. I want to make a query to get all documents fetched today. I tried : fetch-time:NOW/DAY but it returns always 0. fetch-time:[NOW/DAY TO NOW/DAY] (it returns 0) fetch-time:[NOW/DAY-1DAY TO NOW/DAY] but it ret

Re: how to make effective search with fq and q params

2011-11-22 Thread Erik Hatcher
On Nov 22, 2011, at 09:55 , Jeff Schmidt wrote: > When using [e]dismax, does configuring q.alt=*:* and not specifying q affect > the performance/caching in any way? No different than using q=*:* with the "lucene" query parser. MatchAllDocsQuery is possibly the fastest query out there! (it sim

Re: how to make effective search with fq and q params

2011-11-22 Thread Jeff Schmidt
Hi Erik: When using [e]dismax, does configuring q.alt=*:* and not specifying q affect the performance/caching in any way? As a side note, a while back I configured q.alt=*:*, and the application (via SolrJ) still set q=*:* if no user input was provided (faceting). With both of them set that wa

Unexpected cpu load and Solr incrase response time

2011-11-22 Thread mikopacz
Hi, we currently have 2 servers running on JBoss container (master and slave) with 20mln documents and about 3GB index size. Java was executed with options: *-Xms12G -Xmx12G -XX:NewSize=4G -XX:MaxNewSize=4G -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=36000

solr-user@lucene.apache.org

2011-11-22 Thread Jan Høydahl
Why do you need spaces in the replacement? Try pattern="\+" replacement="plus" - it will cause the transformed charstream to contain as many tokens as the original and avoid the highlighting crash. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.sol

Re: date range in solr 3.1

2011-11-22 Thread Jan Høydahl
Hi, Long shot: Try f.date.facet.range.gap=%2B1DAY instead, in case your "+" was interpreted as space by your browser... -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com On 22. nov. 2011, at 12:57, do3do3 wrote: > i try to use range

Re: [ANNOUNCEMENT] Second Edition of the First Book on Solr

2011-11-22 Thread Jan Høydahl
Congratulations! Feel free to write a shorter version of the announcement text, suitable as a news teaser on the Solr site, and we'll try to update the site with new thumb and all. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com O

Re: how to make effective search with fq and q params

2011-11-22 Thread Erik Hatcher
If all you're doing is filtering (browsing by facets perhaps), it's perfectly fine to have q=*:*. MatchAllDocsQuery is fast (and would be cached anyway), so use *:* as appropriate without worries. Erik On Nov 22, 2011, at 07:18 , pravesh wrote: > Usually, > > Use the 'q' parameter

Re: Integrating Surround Query Parser

2011-11-22 Thread Erik Hatcher
The "surround" query parser is fully wired into Solr trunk/4.0, if that helps. See http://wiki.apache.org/solr/SurroundQueryParser and the JIRA issue linked there in case you want to patch it into a different version. Erik On Jan 21, 2011, at 02:24 , Ahson Iqbal wrote: > Hi All > > I

Re: how to use term proxymity queries with apache solr

2011-11-22 Thread Ahmet Arslan
> do i need to install this seperately > or it is integrated in solr 4.0 ? You need to install SOLR-1604 separately. But this is easy since it is implemented as a solr plugin.

Re: How to be sure that surround

2011-11-22 Thread Ahmet Arslan
> I have the solr-trunk , but queries > are running on both (on trunk (4.0) and > on (3.1) ) . then how i can be sure that what query will > run by surround > query parser plugin. > > The query i tried : > http://localhost:8983/solr/select?q=abstracts:99n(flat,panel,display) > > http://localhost:

Re: how to make effective search with fq and q params

2011-11-22 Thread meghana
Thanks Pravesh for your reply.. I definitely try this.. i hope it will improve solr response time. pravesh wrote > > Usually, > > Use the 'q' parameter to search for the free text values entered by the > users (where you might want to parse the query and/or apply > boosting/phrase-sloppy, minim

Stats per group with StatsComponent?

2011-11-22 Thread Morten Lied Johansen
Hi We need to get minimum and maximum values for a field, within a group in a grouped search-result. Is this possible today, perhaps by using StatsComponent some way? I'll flesh out the example a little, to make the question clearer. We have a number of documents, indexed with a price, date

Solr highlighting isn't work!

2011-11-22 Thread VladislavLysov
Hello!!! I have a trouble with Solr highlighting. I have any document with next fields- "TYPE", "DBID" and others. When i do next request - https://localhost:8443/solr/myCore/afts?wt=standard&q=TYPE: https://localhost:8443/solr/myCore/afts?wt=standard&q=TYPE:"cm:content"&indent=on&hl=true&hl.fl=

Re: how to use term proxymity queries with apache solr

2011-11-22 Thread Rahul Mehta
do i need to install this seperately or it is integrated in solr 4.0 ? On Tue, Nov 22, 2011 at 5:49 PM, Ahmet Arslan wrote: > > Not sure about leading wildcard but you can use > https://issues.apache.org for this. > > Sorry, link was : https://issues.apache.org/jira/browse/SOLR-1604 > -- Tha

Re: How to be sure that surround

2011-11-22 Thread Rahul Mehta
I have the solr-trunk , but queries are running on both (on trunk (4.0) and on (3.1) ) . then how i can be sure that what query will run by surround query parser plugin. The query i tried : http://localhost:8983/solr/select?q=abstracts:99n(flat,panel,display) http://localhost:8983/solr/select?q=a

Re: How to be sure that surround

2011-11-22 Thread Ahmet Arslan
> I have done the following steps for > installing surround plugin. > >    1. Downloading from >    http://www.java2s.com/Code/Jar/JKL/Downloadlucenesurround241jar.htm >    2. Moved the > lucene-surround-2.4.1.jar  to > /apache-solr-3.1.0/example/lib >    3. restart solr . > > But How to be sure

Re: how to use term proxymity queries with apache solr

2011-11-22 Thread Ahmet Arslan
> Not sure about leading wildcard but you can use https://issues.apache.org for > this. Sorry, link was : https://issues.apache.org/jira/browse/SOLR-1604

Re: how to make effective search with fq and q params

2011-11-22 Thread pravesh
Usually, Use the 'q' parameter to search for the free text values entered by the users (where you might want to parse the query and/or apply boosting/phrase-sloppy, minimum match,tie etc ) Use the 'fq' to limit the searches to certain criterias like location, date-ranges etc. Also, avoid using t

How to be sure that surround

2011-11-22 Thread Rahul Mehta
I have done the following steps for installing surround plugin. 1. Downloading from http://www.java2s.com/Code/Jar/JKL/Downloadlucenesurround241jar.htm 2. Moved the lucene-surround-2.4.1.jar to /apache-solr-3.1.0/example/lib 3. restart solr . But How to be sure that surround plugin i

Re: how to use term proxymity queries with apache solr

2011-11-22 Thread Ahmet Arslan
> Have used Proximity Queries only work using a sloppy phrase > query (e.g.: > "catalyst polymer" ~5) but do not allow wildcards. > > Want to use Proximity Queries between any terms (e.g.: > (poly* NEAR *lyst)) > is this possible using additional query parsers like > "Surround"? > > if yes ,Pleas

Re: Integrating Surround Query Parser

2011-11-22 Thread Ahmet Arslan
--- On Tue, 11/22/11, Rahul Mehta wrote: > From: Rahul Mehta > Subject: Integrating Surround Query Parser > To: solr-user@lucene.apache.org > Date: Tuesday, November 22, 2011, 8:05 AM > Hello, > > I want to Run surround query . > > >    1. Downloading from >    http://www.java2s.com/Code/Ja

date range in solr 3.1

2011-11-22 Thread do3do3
i try to use range faceting in solr 3.1 using facet.range=date, f.date.facet.range.gap=+1DAY, f.date.facet.range.start=NOW/DAY-5DAYS, and f.date.facet.range.end=NOW/DAY and i get this exception Exception during facet.range of date org.apache.solr.common.SolrException: Can't add gap 1DAYS to value

Re: wild card search and lower-casing

2011-11-22 Thread Dmitry Kan
I guess, I have found your comment, thanks. For our current needs I have just set: setLowercaseExpandedTerms(true); // changed from default false in the SolrQueryParser's constructor and that seem to work so far. In order not to start a separate thread on wildcards. Is it so, that for the trail

Problem with pdf files indexing

2011-11-22 Thread Dali
Hi !I'm using solr 3.3 version and i have some pdf files which i want to index. I followed instructions from the wiki page: http://wiki.apache.org/solr/ExtractingRequestHandler The problem is that i can add my documents to Solr but i cannot request them. Here is what i have: *solrconfig.xml*: