I have an indexed model called Article and I don't want solr to index unpublished articles.
class Article < ActiveRecord::Base
searchable do
text :title
text :body
end
end
How can I specify that article that is not #published? should not be indexed?
A current draft of the "National Strategy for Trusted Identities in Cyberspace" has been posted by the Department of Homeland Security. This question is not asking about privacy or constitutionality, but about how this act will impact developers' business models and development strategies.
When the post was made I was reminded of Jeff's November…
Herb Sutter annonce sur son blog le vote du Final Committee Draft (FCD). Ce vote ouvre le chemin vers une adoption par l'I.S.O. fixant ainsi la nouvelle norme de votre langage préféré. Herb estime cette normalisation possible pour 2011. Quelles sont les évolutions prévues que vous attendez le plus ?
I have a Java HashMap called statusCountMap.
Calling size() results in 30.
But if I count the entries manually, it's 31
This is in one of my TestNG unit tests. These results below are from Eclipse's Display window (type code - highlight - hit Display Result of Evaluating Selected Text).
statusCountMap.size()
(int) 30…
There's an option in Thunderbird called Edit as new... which converts a message to a draft.
I am looking for something similar in Exchange.
Reasoning: We migrated old e-mail of a user from an IMAP server to Exchange. The user had many drafts saved. According to exchange though, the messages are not drafts anymore. My hunch…
I have a problem with setup VPN server on my Ubuntu VPS, here is my server environments:
Ubuntu Server 12.04 x86_64
xl2tpd 1.3.1+dfsg-1
pppd 2.4.5-5ubuntu1
openswan 1:2.6.38-1~precise1
After install software and configuration:
ipsec verify
Checking your system to see if IPsec got installed and started correctly:…
I have a problem with setup VPN server on my Ubuntu VPS, here is my server environments:
Ubuntu Server 12.04 x86_64
xl2tpd 1.3.1+dfsg-1
pppd 2.4.5-5ubuntu1
openswan 1:2.6.38-1~precise1
After install software and configuration:
ipsec verify
Checking your system to see if IPsec got installed and started correctly:…
I am working on an VB.NET app which constructs emails programmatically.
This app can be used by different people at the same time so I thought that having a "central" email mailbox would be appropriate. The users would then have "links" (not sure of the correct term) to that central mailbox through their local copy…
Hello, we have a vb.net application with send and receive mailing also. Now we have added a session timer of 30 min but the users are complaining that they are facing a problem when they write a long text message or while composing they get busy in something else and when they return back to continue composing…
n3035 says:
A variable is introduced by the declaration of an object. The variable's name denotes the object.
n3090 says:
A variable is introduced by the declaration of a reference other than a non-static data member or of an object. The variable's name denotes the reference or object.
I wonder…
i am trying to get ipsec/l2tp running on a debian server with an iphone as a client but always get:
Dec 2 21:00:04 vpn pluto[22711]: packet from <clientip>:43598: received Vendor ID payload [RFC 3947] method set to=115
Dec 2 21:00:04 vpn pluto[22711]: packet from <clientip>:43598: received…
I have a problem with setup VPN server on my Ubuntu VPS, here is my server environments:
Ubuntu Server 12.04 x86_64
xl2tpd 1.3.1+dfsg-1
pppd 2.4.5-5ubuntu1
openswan 1:2.6.38-1~precise1
After install software and configuration:
ipsec verify
Checking your system to see if IPsec got installed and…
Java EE 7 JSR update...in case you missed the last few entries with JSR updates, there are 8 Java EE 7 JSRs currently in JCP milestone review stages. Your input is requested and needed!
JSR 342: Early Draft Review 2– Java Platform, Enterprise Edition 7 (Java EE 7) Specification…
As reported previously here, the JAX-RS 2.0 (JSR 339) expert group is making good progress.
If you're interested in what the future holds for RESTful Java web services, you can now watch Marek's Devoxx presentation or listen to him in the latest Java Spotlight Podcast (#74).
…
A handful of JSRs have been making progress in the JCP program--Java SE, Java ME and Java EE JSRs. More to come in the next few weeks! Highlights and links to JSR material below.
JSR 337, Java SE 8 Release Contents, published an Early Draft Review.
JSR 351, Java…
The following are JSRs have posted updates in the last week:
JSR 331, Constraint Programming API, has posted a Maintenance Draft Review; this review closes 29 September.
JSR 352, Batch Applications for the Java Platform, has posted an Early Draft Review; this review closes 29…
JSR 310, Date and Time API, has published an Early Draft Review 2. This review closes 14 October.
JSR 353, Java API for JSON Processing, has published an Early Draft Review. This review closes 7 October.
JSR 356, Java API for WebSocket, has published an Early…
You have all of your company's processes documented in Oracle Tutor, and now you want to get the HTML files to reflect your company's corporate look and feel. How are you going to do this without having an HTML guru to change every HTML page?
The good news is you do not need…
We're using AmazonS3 for file storage and recently found out that we need to keep some sort of directory structure. Since S3 doesn't allow that, we know we can name the files according to their structure for storage. For example...
abc/123/draft.doc
What I want to know is…
I have the following line between my \maketitle and my \begin{abstract}:
\center{ \textsc{Some text here} }
This seems to cause the ENTIRE DOCUMENT to be formatted as centered. Why is this and how should I get around it?
Part two: Is there a way to get some text to…
I have been kicking an idea around for sometime and wondered if something of it's nature hadn't already been invented.
The premise is a website that integrates code management, project/team management, and micro-transactions.
Donations, in and of themselves, are a…
Hello,
I have a problem with mapping .NET enumerations to database tables. Imagine I have a table called Statuses with the following values:
StatusID | Name
1 Draft
2 Ready
...
...
In the application layer, I can either use a…
Phil Hunt is an active member of multiple industry standards groups and committees (see brief bio at the end of the post) and has spearheaded discussions, creation and ratifications of
Normal
0
false
false
false
EN-US
X-NONE
…
JSR 359, SIP Servlet 2.0, is a new JSR that has been submitted for JSR Review. The review closes 16 July; the JSR Approval Ballot will be 17-20 July 2012.
JSR 355, JCP Executive Committee Merge, has passed the Public Review Ballot and a Proposed Final…